Thread (3 messages) flat view 3 messages, 3 authors, 2012-08-20

RE: [PATCH] caif: Do not dereference NULL in chnl_recv_cb()

From: Sjur BRENDELAND <hidden>
Date: 2012-08-20 06:33:25
Also in: lkml

In net/caif/chnl_net.c::chnl_recv_cb() we call skb_header_pointer()
which may return NULL, but we do not check for a NULL pointer before
dereferencing it.
This patch adds such a NULL check and properly free's allocated memory
and return an error (-EINVAL) on failure - much better than crashing..

Signed-off-by: Jesper Juhl <redacted>
Thank you for fixing this, the patch looks good to me.
Acked-by: Sjur Brændeland <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help