Hi Jaganath, > 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_ccnn with the > new helper. > > Signed-off-by: Jaganath Kanakkassery <jaganathx.kanakkassery@xxxxxxxxx> > --- > net/bluetooth/hci_conn.c | 2 +- > net/bluetooth/hci_request.c | 5 +++++ > net/bluetooth/hci_request.h | 1 + > net/bluetooth/mgmt.c | 1 + > 4 files changed, 8 insertions(+), 1 deletion(-) patch has been applied to bluetooth-next tree. Regards Marcel -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html