]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Check 'dev_class' in mgmt_device_found()
authorAndre Guedes <andre.guedes@openbossa.org>
Fri, 9 Sep 2011 21:56:26 +0000 (18:56 -0300)
committerGustavo F. Padovan <padovan@profusion.mobi>
Wed, 21 Sep 2011 15:59:16 +0000 (12:59 -0300)
commitc6b2ab0f7b33a86a02560eca1ccf9d4626da0e48
tree720d06d2bb311211994d809c6ad7577f630d5f0c
parentdd09e80b0c270cfa77b60e312d56daf78f1da9f4
Bluetooth: Check 'dev_class' in mgmt_device_found()

The mgmt_device_found event will be used to report LE devices found
during discovery procedure. Since LE advertising reports events
doesn't have class of device information, we need to check if
'dev_class' is not NULL before copying it.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/mgmt.c