bluetooth: handle l2cap_create_connless_pdu() errors
authorDan Carpenter <error27@gmail.com>
Wed, 21 Apr 2010 23:52:01 +0000 (23:52 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Apr 2010 00:03:36 +0000 (17:03 -0700)
commit477fffb082920476cc26f238d65538ccb8d601e1
tree3e49749f9c654b09699bb872c4611f71a3ed70d4
parent761ed01b35ca32bfd4166cc3862ae80ee33e3a4b
bluetooth: handle l2cap_create_connless_pdu() errors

l2cap_create_connless_pdu() can sometimes return ERR_PTR(-ENOMEM) or
ERR_PTR(-EFAULT).

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bluetooth/l2cap.c