Commit 2b69d6e8 authored by Chen Aotian's avatar Chen Aotian Committed by sanglipeng
Browse files

ieee802154: hwsim: Fix possible memory leaks

stable inclusion
from stable-v5.10.186
commit 47be2931c4e530fc978edc666ec3b8d37df712f3
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8L5XP

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=47be2931c4e530fc978edc666ec3b8d37df712f3



--------------------------------

[ Upstream commit a6167529 ]

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

Fixes: f25da51f ("ieee802154: hwsim: add replacement for fakelb")
Reviewed-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: default avatarAlexander Aring <aahringo@redhat.com>
Signed-off-by: default avatarChen Aotian <chenaotian2@163.com>
Link: https://lore.kernel.org/r/20230409022048.61223-1-chenaotian2@163.com


Signed-off-by: default avatarStefan Schmidt <stefan@datenfreihafen.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 663ccdb1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment