Thread (2 messages) flat view 2 messages, 2 authors, 2016-02-18

Re: [PATCH] mISDN: prevent possible NULL pointer dereference

From: David Miller <davem@davemloft.net>
Date: 2016-02-18 20:00:11
Also in: lkml

From: Anton Protopopov <redacted>
Date: Wed, 17 Feb 2016 11:19:56 -0500
A return value of the bchannel_get_rxbuf() function is compared with the
positive ENOMEM value instead of the negative -ENOMEM value to detect a
memory allocation problem. Thus, after a possible memory allocation
failure the bc->bch.rx_skb will be NULL which will lead to a NULL
pointer dereference.

Signed-off-by: Anton Protopopov <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help