]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix missing NULL check for smp_chan_create() return value
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 16 Jun 2014 16:25:14 +0000 (19:25 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 3 Jul 2014 15:42:42 +0000 (17:42 +0200)
commitd1fcafdf520d27c018375d125296036207e16adc
treebacd0f2c19ec66de5fb1ed868957a3b8a54ff180
parent7efd0f20f0b375b0c2d3bdcc284e188ec40f2e7a
Bluetooth: Fix missing NULL check for smp_chan_create() return value

The smp_chan_create function may return NULL, e.g. in the case of memory
allocation failure, so we always need to check for this.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/smp.c