[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20170523132853.Horde.5IEI9rXUtGVpkMBU_IJgXpJ@gator4166.hostgator.com>
Date: Tue, 23 May 2017 13:28:53 -0500
From: "Gustavo A. R. Silva" <garsilva@...eddedor.com>
To: Marcel Holtmann <marcel@...tmann.org>
Cc: Harry Morris <h.morris@...coda.com>, linuxdev@...coda.com,
Alexander Aring <aar@...gutronix.de>,
Stefan Schmidt <stefan@....samsung.com>,
linux-wpan@...r.kernel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] net: ieee802154: fix potential null pointer dereference
Hi Marcel,
Quoting Marcel Holtmann <marcel@...tmann.org>:
> Hi Gustavo,
>
>> Null check at line 918: if (!spi) {, implies spi might be NULL.
>> Function spi_get_drvdata() dereference pointer spi.
>> Move pointer priv assignment after the null check.
>>
>> Addresses-Coverity-ID: 1408888
>> Signed-off-by: Gustavo A. R. Silva <garsilva@...eddedor.com>
>> ---
>> drivers/net/ieee802154/ca8210.c | 3 ++-
>> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> patch has been applied to bluetooth-next tree.
>
Awesome :)
Thanks
--
Gustavo A. R. Silva
Powered by blists - more mailing lists