WSL2-Linux-Kernel/net/caif
Jesper Juhl d92c7f8aab caif: Do not dereference NULL in chnl_recv_cb()
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 <jj@chaosbits.net>
Acked-by: Sjur Brændeland <sjur.brandeland@stericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-08-20 02:47:49 -07:00
..
Kconfig Kconfig: replace "--- help ---" with "---help---" 2012-05-07 15:01:22 +02:00
Makefile
caif_dev.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2012-07-19 11:17:30 -07:00
caif_socket.c netvm: prevent a stream-specific deadlock 2012-07-31 18:42:47 -07:00
caif_usb.c
cfcnfg.c
cfctrl.c caif: Fixed potential memory leak 2012-06-25 16:44:11 -07:00
cfdbgl.c caif: Fix for a race in socket transmit with flow control. 2012-03-11 15:38:16 -07:00
cfdgml.c caif: Fix for a race in socket transmit with flow control. 2012-03-11 15:38:16 -07:00
cffrml.c
cfmuxl.c
cfpkt_skbuff.c caif: set traffic class for caif packets 2012-04-13 11:37:36 -04:00
cfrfml.c caif: Fix for a race in socket transmit with flow control. 2012-03-11 15:38:16 -07:00
cfserl.c
cfsrvl.c caif: set traffic class for caif packets 2012-04-13 11:37:36 -04:00
cfutill.c caif: Fix for a race in socket transmit with flow control. 2012-03-11 15:38:16 -07:00
cfveil.c
cfvidl.c caif: Fix for a race in socket transmit with flow control. 2012-03-11 15:38:16 -07:00
chnl_net.c caif: Do not dereference NULL in chnl_recv_cb() 2012-08-20 02:47:49 -07:00