]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Refactor read_ext_controller_info handler
authorSzymon Janc <szymon.janc@codecoup.pl>
Mon, 19 Sep 2016 18:25:52 +0000 (20:25 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 19 Sep 2016 18:33:27 +0000 (20:33 +0200)
commit43e37d7f6b4bfec41cbaa010ad563893f2bcf205
treeb853315c348fb994346c4c29af8d9d877470928e
parent3ec84dbd8e09ded4405b6adbc0e0905bef11b0f1
Bluetooth: Refactor read_ext_controller_info handler

There is no need to allocate heap for reply only to copy stack data to
it. This also fix rp memory leak and missing hdev unlock if kmalloc
failed.

Signed-off-by: Szymon Janc <szymon.janc@codecoup.pl>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/mgmt.c