summaryrefslogtreecommitdiff
path: root/net/core/stream.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2021-10-11 15:39:12 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-11-26 11:58:39 +0100
commit4e93d50dae71fddfb269fc5243d7dba7c916cb8b (patch)
tree1de5e459b45ac2b20f154ae0932dfcd50e79c266 /net/core/stream.c
parentda5a9a04d116f7288a455a850c44e2a01425ffbf (diff)
memstick: jmb38x_ms: use appropriate free function in jmb38x_ms_alloc_host()
[ Upstream commit beae4a6258e64af609ad5995cc6b6056eb0d898e ] The "msh" pointer is device managed, meaning that memstick_alloc_host() calls device_initialize() on it. That means that it can't be free using kfree() but must instead be freed with memstick_free_host(). Otherwise it leads to a tiny memory leak of device resources. Fixes: 60fdd931d577 ("memstick: add support for JMicron jmb38x MemoryStick host controller") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Link: https://lore.kernel.org/r/20211011123912.GD15188@kili Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/core/stream.c')
0 files changed, 0 insertions, 0 deletions