alistair23-linux/drivers/media/usb/hdpvr
Alexey Khoroshilov e2f11c58ae [media] hdpvr: fix iteration over uninitialized lists in hdpvr_probe()
free_buff_list and rec_buff_list are initialized in the middle of hdpvr_probe(),
but if something bad happens before that, error handling code calls hdpvr_delete(),
which contains iteration over the lists (via hdpvr_free_buffers()).
The patch moves the lists initialization to the beginning and by the way fixes
goto label in error handling of registering videodev.
Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2013-07-26 10:32:48 -03:00
..
hdpvr-control.c [media] hdpvr: improve error handling 2013-06-13 11:35:47 -03:00
hdpvr-core.c [media] hdpvr: fix iteration over uninitialized lists in hdpvr_probe() 2013-07-26 10:32:48 -03:00
hdpvr-i2c.c [media] [V2,23/24] usb/hdpvr/hdpvr-i2c.c: use IS_ENABLED() macro 2013-02-06 09:20:41 -02:00
hdpvr-video.c [media] hdpvr: improve error handling 2013-06-13 11:35:47 -03:00
hdpvr.h [media] hdpvr: improve error handling 2013-06-13 11:35:47 -03:00
Kconfig [media] media: fix hdpvr kconfig/build errors 2013-05-27 08:51:27 -03:00
Makefile