Received: by 10.213.65.68 with SMTP id h4csp888289imn; Tue, 27 Mar 2018 10:37:33 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+rySjhTxRabCbT6WO4XmSkrI3+mU1kLq40lgWCClqUdG/r22douwF99JjMaqexqmkQPpWO X-Received: by 2002:a17:902:481:: with SMTP id e1-v6mr204011ple.377.1522172253375; Tue, 27 Mar 2018 10:37:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522172253; cv=none; d=google.com; s=arc-20160816; b=UcjwwMlamdFhL9LSILv7TS5T6GC08vZFkM46aPbkPiOZm+s4UBQqMnGSMc9fxrmXm8 8aSVIoQ0Z1MV1GaN+2Oli+Iqr6mWgtR7nsrATlLq0Rub7/Eq3EeSWYWuUxoD00Mxl+n0 yCl1AmIl0SyU+zDFBnyDYBQ8PZfRf+xIu+CwIm4jeQeBIsnQR68Dqhx5CbvsV3XtZ6rt dShGoE8nRLiU+P+JDxPdK0EMbGQ/9L/H1NaaJ/1lbrGsijYZSVhOdvYoB93/2gRx5By2 QXElgdz+4dx7Tj3HHxP1JvurZu0KF5bt+bvT3YyMH/XExVDXD3k/3htdsqAQzK2mEen4 nBiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=BOTomRhf/DSaGwso3NC9ucsfC5nLE9vZzUTwlRcAGfs=; b=tVizogtxT2awANMCfj7Dqy3z5+Kvrk/J6W9KEwKwDVOoDmlwrnHM93v7Akz6ZCqvfg +dF9Jz3/YgjkUJwxdW0gTHMoeZw3U+GMUtX800YFZlKm/5vI3eoaDcITOhKG+0yDkCwr 4JEHFtGMfsrvESt1PpsDkoe/yDO3hZCom4cGPRqgPqO3UFdELxaluJxd8Mh0MEdMHU/V 6jwIZKmYHz7kypEXggOO/qaGnu9iqBiSartSHrLPpShW0owZeCM0fB1w7uRP6sWH0b9s MmoGDrSxU0wW92x/bgu+a47Ae9WB+W0sYvMdw6AMeopbGcSsj0pwylPaMX+yhSVVbpV+ WJhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=bqt64my4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f18si1153551pgn.244.2018.03.27.10.37.18; Tue, 27 Mar 2018 10:37:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=bqt64my4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754570AbeC0Rfp (ORCPT + 99 others); Tue, 27 Mar 2018 13:35:45 -0400 Received: from mail-ot0-f173.google.com ([74.125.82.173]:33632 "EHLO mail-ot0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754433AbeC0Rfk (ORCPT ); Tue, 27 Mar 2018 13:35:40 -0400 Received: by mail-ot0-f173.google.com with SMTP id 23-v6so14872084otj.0 for ; Tue, 27 Mar 2018 10:35:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BOTomRhf/DSaGwso3NC9ucsfC5nLE9vZzUTwlRcAGfs=; b=bqt64my4oqy/20dGuVp/4FkzEBEJxacD6/fzD+H4fQfADBOJ8p5Pav3BSS6FKEX769 1UJMM84fVkRxU+ULnojYLo7e2ta7BRvOchjplbdWJ3kkciSDOPLuCP7L7xLM53hg7sdu A77JojFvuJ4GkVbak3cV9s9vzWNJoVme/w9gM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BOTomRhf/DSaGwso3NC9ucsfC5nLE9vZzUTwlRcAGfs=; b=udJy+NNehwE0LAdnU9H/hHZxU814AwiBHbtMlyOjTfcXaPJPw2oaAk0BrIGaPPhZ78 tcrt8ea1pGeyymQXLZ2uqcVVK1k2BJ+HuKdpMo7+/ZmRsqrBD1X/7ySzfWEhmrHQrBbH XQCwTfuIDtc3ajWcVkUSZHnuwr4fLKiE5ls5/MdclOq7jYOkjXUaTy2LWB6oi/z5Wvgl TsPBGzLgY/CPQIM93PJ7UzEskinEAXGpbOuMUwvFCC50RDiKa5E9/YipUCB6GMtjSCeD d/VF0F4VmYTzYf6DYicbk0oJOoFlij6zKOMGovP1faofDkBaD94j4nst7WCndnyoH4u5 s29w== X-Gm-Message-State: ALQs6tCOsh41259orWD4o1M8hwjvufKFGiJwrAEGQ2mSrlBaVxpSzU7V tCmnXJ9HF5ELCHklxikNKaHjbhCi2yQ= X-Received: by 2002:a9d:2dea:: with SMTP id g97-v6mr173114otb.138.1522172139415; Tue, 27 Mar 2018 10:35:39 -0700 (PDT) Received: from mail-ot0-f175.google.com (mail-ot0-f175.google.com. [74.125.82.175]) by smtp.gmail.com with ESMTPSA id k64-v6sm947729oia.38.2018.03.27.10.35.38 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Mar 2018 10:35:38 -0700 (PDT) Received: by mail-ot0-f175.google.com with SMTP id x6-v6so23935033otg.11 for ; Tue, 27 Mar 2018 10:35:38 -0700 (PDT) X-Received: by 2002:a9d:3323:: with SMTP id f32-v6mr164907otc.221.1522172137787; Tue, 27 Mar 2018 10:35:37 -0700 (PDT) MIME-Version: 1.0 References: <1521785487-29866-1-git-send-email-mgautam@codeaurora.org> <1521785487-29866-3-git-send-email-mgautam@codeaurora.org> In-Reply-To: <1521785487-29866-3-git-send-email-mgautam@codeaurora.org> From: Evan Green Date: Tue, 27 Mar 2018 17:35:02 +0000 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 2/6] phy: qcom-qusb2: Fix crash if nvmem cell not specified To: Manu Gautam Cc: kishon@ti.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, linux-arm-msm@vger.kernel.org, stable@vger.kernel.org, vivek.gautam@codeaurora.org, jh80.chung@samsung.com, yoshihiro.shimoda.uh@renesas.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 22, 2018 at 11:13 PM Manu Gautam wrote: > Driver currently crashes due to NULL pointer deference > while updating PHY tune register if nvmem cell is NULL. > Since, fused value for Tune1/2 register is optional, > we'd rather bail out. > Fixes: ca04d9d3e1b1 ("phy: qcom-qusb2: New driver for QUSB2 PHY on Qcom chips") > Reviewed-by: Vivek Gautam > Cc: stable # 4.14+ > Signed-off-by: Manu Gautam > --- > drivers/phy/qualcomm/phy-qcom-qusb2.c | 4 ++++ > 1 file changed, 4 insertions(+) Reviewed-by: Evan Green