mbox series

[v2,wireless-drivers,0/2] libertas: Fix some memory leak bugs

Message ID 20211020120345.2016045-1-wanghai38@huawei.com (mailing list archive)
Headers show
Series libertas: Fix some memory leak bugs | expand

Message

Wang Hai Oct. 20, 2021, 12:03 p.m. UTC
This patchset fixes some memory leak bugs by adding the missing kfree().

v1->v2:
	1. Fix the wrong subject.
	2. Splitting the big patch into two separate patches.

Wang Hai (2):
  libertas_tf: Fix possible memory leak in probe and disconnect
  libertas: Fix possible memory leak in probe and disconnect

 drivers/net/wireless/marvell/libertas/if_usb.c    | 2 ++
 drivers/net/wireless/marvell/libertas_tf/if_usb.c | 2 ++
 2 files changed, 4 insertions(+)

Comments

Brian Norris Oct. 20, 2021, 5:33 p.m. UTC | #1
On Wed, Oct 20, 2021 at 5:04 AM Wang Hai <wanghai38@huawei.com> wrote:
> This patchset fixes some memory leak bugs by adding the missing kfree().

You could probably just as well switch the kzalloc()'s to be
devm_kzalloc()'s, but either way works I guess.

Reviewed-by: Brian Norris <briannorris@chromium.org>