Commit c8eb9690 authored by Brian Gix's avatar Brian Gix Committed by Gustavo F. Padovan
Browse files

Bluetooth: Cleanup blkcipher on SMP termination

The blkcipher must be freed to avoid memory leak.
Signed-off-by: default avatarBrian Gix <>
Signed-off-by: default avatarGustavo F. Padovan <>
parent 1143d458
......@@ -379,7 +379,15 @@ static struct smp_chan *smp_chan_create(struct l2cap_conn *conn)
void smp_chan_destroy(struct l2cap_conn *conn)
struct smp_chan *smp = conn->smp_chan;
clear_bit(HCI_CONN_LE_SMP_PEND, &conn->hcon->pend);
if (smp->tfm)
conn->smp_chan = NULL;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment