Files
linux/drivers
Anton Vasilyev 6b7c7186c2 media: dw2102: Fix memleak on sequence of probes
[ Upstream commit 299c7007e9 ]

Each call to dw2102_probe() allocates memory by kmemdup for structures
p1100, s660, p7500 and s421, but there is no their deallocation.
dvb_usb_device_init() copies the corresponding structure into
dvb_usb_device->props, so there is no use of original structure after
dvb_usb_device_init().

The patch moves structures from global scope to local and adds their
deallocation.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Anton Vasilyev <vasilyev@ispras.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-09-19 22:43:39 +02:00
..
2018-07-22 14:28:43 +02:00
2018-07-03 11:24:56 +02:00
2018-08-17 21:01:11 +02:00
2018-09-15 09:45:35 +02:00
2018-08-22 07:46:11 +02:00
2018-08-24 13:09:06 +02:00
2018-07-25 11:25:10 +02:00
2018-09-15 09:45:27 +02:00