]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ieee802154: hwsim: Fix possible memory leaks
authorChen Aotian <chenaotian2@163.com>
Sun, 9 Apr 2023 02:20:48 +0000 (10:20 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Jun 2023 08:18:38 +0000 (10:18 +0200)
commitd0fe8a733fa715355ea5da0f5d37fa0b9b1ffa16
tree94710e7cc2a2fc4c59984132cf3510336b94e117
parentdfcac203a36ac5b20dd20c53df641e92ab51d7db
ieee802154: hwsim: Fix possible memory leaks

[ Upstream commit a61675294735570daca3779bd1dbb3715f7232bd ]

After replacing e->info, it is necessary to free the old einfo.

Fixes: f25da51fdc38 ("ieee802154: hwsim: add replacement for fakelb")
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: Chen Aotian <chenaotian2@163.com>
Link: https://lore.kernel.org/r/20230409022048.61223-1-chenaotian2@163.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ieee802154/mac802154_hwsim.c