Bluetooth: Fix skb allocation check for A2MP
authorGustavo Padovan <gustavo.padovan@collabora.co.uk>
Sat, 22 Dec 2012 03:22:53 +0000 (01:22 -0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Fri, 7 Mar 2014 18:09:41 +0000 (20:09 +0200)
commit0753c182ef11e27f8f3dea2dc9ca4bcf40019eb5
tree46344bf69ff8d78cda46013792c22d1f4e7f1f62
parentb9e2535acad8f52a17e2aa843d45a6b756b59592
Bluetooth: Fix skb allocation check for A2MP

vtable's method alloc_skb() needs to return a ERR_PTR in case of err and
not a NULL.

Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/a2mp.c