]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: mwifiex: fix memory leak in mwifiex_histogram_read()
authorDmitry Antipov <dmantipov@yandex.ru>
Wed, 2 Aug 2023 16:07:15 +0000 (19:07 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Sep 2023 07:42:33 +0000 (09:42 +0200)
commit84081b4baafb49211193c6a056d5aee9c0e6ab8e
treeecf7359c77ca0ec32ab22ace0bbef7596501c4c2
parent9257a1d6f27222d4c453e6404750066e4060f72d
wifi: mwifiex: fix memory leak in mwifiex_histogram_read()

[ Upstream commit 9c8fd72a5c2a031cbc680a2990107ecd958ffcdb ]

Always free the zeroed page on return from 'mwifiex_histogram_read()'.

Fixes: cbf6e05527a7 ("mwifiex: add rx histogram statistics support")
Acked-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230802160726.85545-1-dmantipov@yandex.ru
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/marvell/mwifiex/debugfs.c