IB/qib: Use memdup_user() rather than duplicating its implementation