Re: [PATCH] Bluetooth: hci_qca: Fix memleak in qca_controller_memdump

2021-01-05 Thread Marcel Holtmann
Hi Dinghao, > 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 > --- > drivers/bluetooth/hci_qca.c | 2 ++ > 1 file changed, 2 insert

[PATCH] Bluetooth: hci_qca: Fix memleak in qca_controller_memdump

2021-01-01 Thread Dinghao Liu
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 --- drivers/bluetooth/hci_qca.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers