Bluetooth: A2MP: Fix potential NULL dereference
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Fri, 28 Sep 2012 11:28:50 +0000 (14:28 +0300)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Mon, 1 Oct 2012 15:02:12 +0000 (12:02 -0300)
commitbc8dce4f7b4908bac69acac34d19b4234ba19cee
tree2dda8509eb59e2f216a0a51087e2a8d1b0a87e2c
parent9cb23dd4b6361538eeca33f463b649e8939edde1
Bluetooth: A2MP: Fix potential NULL dereference

Return INVALID_CTRL_ID for unknown AMP controller and for BR/EDR
controller and fixes dereference possible NULL pointer.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/a2mp.c