[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20151020045058.GG9764@zurbaran.home>
Date: Tue, 20 Oct 2015 06:50:58 +0200
From: Samuel Ortiz <sameo@...ux.intel.com>
To: Julia Lawall <Julia.Lawall@...6.fr>
Cc: Lauro Ramos Venancio <lauro.venancio@...nbossa.org>,
kernel-janitors@...r.kernel.org,
Aloisio Almeida Jr <aloisio.almeida@...nbossa.org>,
"David S. Miller" <davem@...emloft.net>,
linux-wireless@...r.kernel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/2] NFC: delete null dereference
Hi Julia,
On Sat, Oct 17, 2015 at 11:32:19AM +0200, Julia Lawall wrote:
> The exit label performs device_unlock(&dev->dev);, which will fail when dev
> is NULL, and nfc_put_device(dev);, which is not useful when dev is NULL, so
> just exit the function immediately.
>
> Problem found using scripts/coccinelle/null/deref_null.cocci
>
> Signed-off-by: Julia Lawall <Julia.Lawall@...6.fr>
>
> ---
> net/nfc/netlink.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
Applied to nfc-next, thanks.
Cheers,
Samuel.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists