Bluetooth: hci_qca: Fix memleak in qca_controller_memdump
authorDinghao Liu <dinghao.liu@zju.edu.cn>
Sat, 2 Jan 2021 05:47:55 +0000 (13:47 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 6 Jan 2021 07:46:10 +0000 (08:46 +0100)
commit71f8e707557b9bc25dc90a59a752528d4e7c1cbf
treed29b4f2262c4f6b1c49e60983df3861fba3d8aad
parentf272f185d259e2d574b4868fe8fb0ee56f3c2cfa
Bluetooth: hci_qca: Fix memleak in qca_controller_memdump

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>
drivers/bluetooth/hci_qca.c