[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <5507E024.9090801@pengutronix.de>
Date: Tue, 17 Mar 2015 09:04:52 +0100
From: Marc Kleine-Budde <mkl@...gutronix.de>
To: Colin King <colin.king@...onical.com>,
Wolfgang Grandegger <wg@...ndegger.com>,
linux-can@...r.kernel.org, netdev@...r.kernel.org
CC: linux-kernel@...r.kernel.org
Subject: Re: [PATCH] can: gs_usb: check for kzalloc allocation failure
On 03/16/2015 11:42 PM, Colin King wrote:
> From: Colin Ian King <colin.king@...onical.com>
>
> smatch detected the following issue:
> drivers/net/can/usb/gs_usb.c:904 gs_usb_probe() error:
> potential null dereference 'dev'. (kzalloc returns null)
>
> Add a check for null return from kzalloc and return -ENOMEM
>
> Signed-off-by: Colin Ian King <colin.king@...onical.com>
Thanks, applied to can.
Marc
--
Pengutronix e.K. | Marc Kleine-Budde |
Industrial Linux Solutions | Phone: +49-231-2826-924 |
Vertretung West/Dortmund | Fax: +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
Download attachment "signature.asc" of type "application/pgp-signature" (820 bytes)
Powered by blists - more mailing lists