Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1648318 > unrolled thread

Re: [PATCH] net: ieee802154: fix potential null pointer dereference

Started byMarcel Holtmann <marcel@holtmann.org>
First post2017-05-23 20:20 +0200
Last post2017-05-23 20:30 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] net: ieee802154: fix potential null pointer dereference Marcel Holtmann <marcel@holtmann.org> - 2017-05-23 20:20 +0200
    Re: [PATCH] net: ieee802154: fix potential null pointer dereference "Gustavo A. R. Silva" <garsilva@embeddedor.com> - 2017-05-23 20:30 +0200

#1648318 — Re: [PATCH] net: ieee802154: fix potential null pointer dereference

FromMarcel Holtmann <marcel@holtmann.org>
Date2017-05-23 20:20 +0200
SubjectRe: [PATCH] net: ieee802154: fix potential null pointer dereference
Message-ID<tKmzv-6Qv-11@gated-at.bofh.it>
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@embeddedor.com>
> ---
> drivers/net/ieee802154/ca8210.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)

patch has been applied to bluetooth-next tree.

Regards

Marcel

[toc] | [next] | [standalone]


#1648325

From"Gustavo A. R. Silva" <garsilva@embeddedor.com>
Date2017-05-23 20:30 +0200
Message-ID<tKmJb-6US-13@gated-at.bofh.it>
In reply to#1648318
Hi Marcel,

Quoting Marcel Holtmann <marcel@holtmann.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@embeddedor.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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web