]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: smp: Fix possible NULL dereference
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Thu, 19 Jul 2012 14:03:43 +0000 (17:03 +0300)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Mon, 6 Aug 2012 18:19:37 +0000 (15:19 -0300)
commitb07c3a333fca3f1c02905068b27e06787a17cbb1
tree2f5a17eb8c1240b55027d39b9957bd17893abcf0
parentac586b769871d1ab7381d745e15367a42ba8e01c
Bluetooth: smp: Fix possible NULL dereference

smp_chan_create might return NULL so we need to check before
dereferencing smp.

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