Skip to content
Commit deb0f02d authored by Hangyu Hua's avatar Hangyu Hua Committed by Greg Kroah-Hartman
Browse files

yam: fix a memory leak in yam_siocdevprivate()

[ Upstream commit 29eb3154 ]

ym needs to be free when ym->cmd != SIOCYAMSMCS.

Fixes: 0781168e

 ("yam: fix a missing-check bug")
Signed-off-by: default avatarHangyu Hua <hbh25y@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 36f9629b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment