Jesper Juhl 57136ca6d5 [PATCH] Bluetooth: fix potential NULL ptr deref in dtl1_cs.c::dtl1_hci_send_frame()
There's a problem in drivers/bluetooth/dtl1_cs.c::dtl1_hci_send_frame()

If bt_skb_alloc() returns NULL, then skb_reserve(s, NSHL); will cause a
NULL pointer deref - ouch.  If we can't allocate the resources we require
we need to tell the caller by returning -ENOMEM.

Found by the coverity checker as bug #409

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-06-26 09:58:16 -07:00
..
2006-06-20 01:21:29 -07:00
2006-06-25 10:01:16 -07:00
2006-06-23 07:43:06 -07:00
2006-06-23 08:47:27 -07:00
2006-06-17 21:25:58 -07:00
2006-05-03 20:05:41 -07:00
2006-06-20 01:21:29 -07:00
2006-06-19 13:06:05 +01:00
2006-06-19 15:37:31 +01:00
2006-06-25 10:01:14 -07:00
2006-06-25 10:01:06 -07:00
2006-06-23 07:43:06 -07:00
2006-06-17 21:18:43 -07:00
2006-06-17 21:18:43 -07:00