Files
linux/drivers
Alexey Khoroshilov ed6db5dcac media: hdpvr: fix iteration over uninitialized lists in hdpvr_probe()
commit 2e923a0527 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-09-26 17:18:26 -07:00
..
2013-05-17 14:31:05 -04:00
2013-08-11 18:35:21 -07:00
2013-07-28 16:30:11 -07:00
2013-05-20 13:38:14 -07:00
2013-08-29 09:47:40 -07:00
2013-05-15 10:58:22 -07:00
2013-06-05 08:54:16 -06:00