Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1366411imj; Thu, 7 Feb 2019 23:45:40 -0800 (PST) X-Google-Smtp-Source: AHgI3IatI8AN0DtiY99M+LIUkepVGxqubwyWCR+cRrutzECUfpPN5olWqkCARWBEfGezHCiWXDU2 X-Received: by 2002:a65:4383:: with SMTP id m3mr18064776pgp.96.1549611940617; Thu, 07 Feb 2019 23:45:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549611940; cv=none; d=google.com; s=arc-20160816; b=iDKM0KXVVLqWFOzvb0xi6s22Wu0S6Q3N8hjgW3ztT9oJ1KAFbbsc7BslGKWscwGUDt fl/m9iefAddaZ041wEkS82Bp5RAUhBKZnJowk5JM+QWnC0wAuAUdi/d8GoLPItDm5Fdy zK3vpri0EZJIdcLgT0l8gnPhiG/LUq1ObPUSZdYyURktbRfzZ+CN+TYAmpZymZ/PpIqP 9KdMFsj4aTNPjdB1thQGLM1bCidL2ko9Wsbrpj51lZ/htr2XamFzY5Tdy0YLHAVHKEny rMHfc+UKTUClTDSoYYxpvw5FsabdNnwwTXJKWzYKp1SBlROuzvNZwDnaSNbkyzVFEHS+ En9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=zflHlFbPkY2PV8qOIrRr0N7MNc+xtWDuAyDAya3Hz7I=; b=Xo9nCFNGQcM0EqYKHN6eMHzD5wdPIVKjJ7h3ID4ulxtLj8zGRT6/yWzui40ViQ5O1j 2gveQakC7OoeR3sDkah3g+4HIbxC4phsewzekqdN4qLhtpOUkbs1Rjmwz/OR8AiJq9yw mOCfC6vHuPWeGQfspj634bDENpUBo4nMfkdAIqfCGYMd+swq34OBF9fWuUzQNrId8JlQ wKGMBxysMigdYgqh4sXu3Ph39Sgyk3emqkKmfmCuHxVuc23Ftv3EFNPnpBITHBx1C+dW aYTqnWqZ3jL/i8M4wsdSHIkVvdUMDYL9EgvttMivjJ7O7rKhzQiHdQDDSk9mUKDBFh+3 Swpg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r3si1528386plb.421.2019.02.07.23.45.25; Thu, 07 Feb 2019 23:45:40 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727207AbfBHHpC (ORCPT + 99 others); Fri, 8 Feb 2019 02:45:02 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:49881 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726004AbfBHHpC (ORCPT ); Fri, 8 Feb 2019 02:45:02 -0500 X-Originating-IP: 90.88.22.177 Received: from localhost (aaubervilliers-681-1-80-177.w90-88.abo.wanadoo.fr [90.88.22.177]) (Authenticated sender: maxime.ripard@bootlin.com) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id ADD6F60008; Fri, 8 Feb 2019 07:44:58 +0000 (UTC) Date: Fri, 8 Feb 2019 08:44:58 +0100 From: Maxime Ripard To: Yizhuo Cc: csong@cs.ucr.edu, zhiyunq@cs.ucr.edu, Giuseppe Cavallaro , Alexandre Torgue , Chen-Yu Tsai , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: stmmac: Variable "val" in function sun8i_dwmac_set_syscon() could be uninitialized Message-ID: <20190208074458.edgvwfgytlio62yn@flea> References: <20190207174623.16712-1-yzhai003@ucr.edu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ktram64yqnag7qmy" Content-Disposition: inline In-Reply-To: <20190207174623.16712-1-yzhai003@ucr.edu> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ktram64yqnag7qmy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 07, 2019 at 09:46:23AM -0800, Yizhuo wrote: > In function sun8i_dwmac_set_syscon(), local variable "val" could > be uninitialized if function regmap_read() returns -EINVAL. > However, it will be used directly in the if statement, which > is potentially unsafe. >=20 > Signed-off-by: Yizhuo Acked-by: Maxime Ripard Thanks! Maxime --=20 Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --ktram64yqnag7qmy Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXF0zegAKCRDj7w1vZxhR xZAIAP9XLy4fhsazFjOCIM5YOqI9osHgxZAwOYd7hAoxUrBM3gD+J7BlsTyqYo6K uvUY4PmJLZN6G5k/6Fi7qkvbqMIHEQs= =I1dd -----END PGP SIGNATURE----- --ktram64yqnag7qmy--