]> git.openfabrics.org - ~emulex/infiniband.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)
commitc29d2444170a4e0709331e357a2738a02666a633
treebacd0f2c19ec66de5fb1ed868957a3b8a54ff180
parent65cc2b49db63adf1455a9783234383fbec5b8314
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