Bluetooth: Fix return value when bt_skb_alloc fails
authorGustavo F. Padovan <padovan@profusion.mobi>
Sat, 1 May 2010 19:15:34 +0000 (16:15 -0300)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 10 May 2010 07:28:45 +0000 (09:28 +0200)
commitfe1aff710756ac73c455d214845c74e304d0e966
treeb561c36d75a6b190ba95aab5b5234913af844d74
parent3ee943728fff536edaf8f59faa58aaa1aa7366e3
Bluetooth: Fix return value when bt_skb_alloc fails

Set the proper error(ENOMEM), instead of just return 0.

Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_h4.c
drivers/bluetooth/hci_ll.c