commit | 601899cec0a3a84341d70289cd014d358b00f808 | [log] [tgz] |
---|---|---|
author | Dinghao Liu <dinghao.liu@zju.edu.cn> | Sat Jan 02 13:47:55 2021 +0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Mar 04 11:37:22 2021 +0100 |
tree | de1fb47d2a29643947f5a9823216009a9b1fcc70 | |
parent | ec621e844289c1eee648ce33c3e1c73b86ad4084 [diff] |
Bluetooth: hci_qca: Fix memleak in qca_controller_memdump [ Upstream commit 71f8e707557b9bc25dc90a59a752528d4e7c1cbf ] When __le32_to_cpu() fails, qca_memdump should be freed just like when vmalloc() fails. Fixes: d841502c79e3f ("Bluetooth: hci_qca: Collect controller memory dump during SSR") Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn> Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Sasha Levin <sashal@kernel.org>