提交 163f4dab 编写于 作者: T Tomas Targownik 提交者: Gustavo F. Padovan

Bluetooth: Fix memory leak under page timeouts

If the remote device is not present, the connections attemp fails and
the struct hci_conn was not freed
Signed-off-by: NTomas Targownik <ttargownik@geicp.com>
Signed-off-by: NGustavo F. Padovan <padovan@profusion.mobi>
上级 9fa7e4f7
......@@ -393,6 +393,9 @@ int hci_conn_del(struct hci_conn *conn)
hci_dev_put(hdev);
if (conn->handle == 0)
kfree(conn);
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册