diff options
author | Navid Emamdoost <navid.emamdoost@gmail.com> | 2019-11-21 14:20:36 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-09 10:20:04 +0100 |
commit | 36427907e08613382e469acf096d4efbdbf8bb1a (patch) | |
tree | 47cd32e783e0b399224b098e54bb28257893dffc /arch/arm64/boot/dts/amlogic | |
parent | 081d57ac233a56fdb5655fb898b681088235fadc (diff) |
Bluetooth: Fix memory leak in hci_connect_le_scan
commit d088337c38a5cd8f0230fbf2d514ff7672f9d0d3 upstream.
In the implementation of hci_connect_le_scan() when conn is added via
hci_conn_add(), if hci_explicit_conn_params_set() fails the allocated
memory for conn is leaked. Use hci_conn_del() to release it.
Fixes: f75113a26008 ("Bluetooth: add hci_connect_le_scan")
Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/arm64/boot/dts/amlogic')
0 files changed, 0 insertions, 0 deletions