4f4e6644cd
For two of the supported sensors the stv06xx driver allocates memory which is stored in sd->sensor_priv. This memory is freed on a disconnect, but if the probe() fails, then it isn't freed and so this leaks memory. Add a new probe_error() op that drivers can use to free any allocated memory in case there was a probe failure. Thanks to Pavel Skripkin <paskripkin@gmail.com> for discovering the cause of the memory leak. Reported-and-tested-by: syzbot+e7f4c64a4248a0340c37@syzkaller.appspotmail.com Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
stv06xx.c | ||
stv06xx.h | ||
stv06xx_hdcs.c | ||
stv06xx_hdcs.h | ||
stv06xx_pb0100.c | ||
stv06xx_pb0100.h | ||
stv06xx_sensor.h | ||
stv06xx_st6422.c | ||
stv06xx_st6422.h | ||
stv06xx_vv6410.c | ||
stv06xx_vv6410.h |