Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
user avatar
Dan Carpenter authored
[ Upstream commit beae4a62 ]

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: 60fdd931

 ("memstick: add support for JMicron jmb38x MemoryStick host controller")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20211011123912.GD15188@kili


Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
41fe79cf
Name Last commit Last update
..
core
host
Kconfig
Makefile