Jaganath Kanakkassery f17d858ed0 Bluetooth: Fix potential memory leak
If command is added to req then it should be freed in case if
hdev is down or HCI_ADVERTISING flag is set.

This introduces a helper in hci_request to purge the cmd_q
to make cmd_q internal to hci_request which is used to fix
the leak.

This also replace accessing of cmd_q in hci_conn with the
new helper.

Signed-off-by: Jaganath Kanakkassery <jaganathx.kanakkassery@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
2017-10-29 14:07:10 +01:00
..
2017-07-25 12:31:37 -07:00
2015-07-30 13:31:59 +02:00
2015-07-30 13:31:59 +02:00
2017-08-19 11:55:31 +02:00
2017-09-01 22:49:47 +02:00
2017-10-29 14:07:10 +01:00