summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/hdpvr/hdpvr-i2c.c
diff options
context:
space:
mode:
authorAlexey Khoroshilov <khoroshilov@ispras.ru>2013-07-03 21:17:34 +0200
committerMauro Carvalho Chehab <m.chehab@samsung.com>2013-09-03 14:24:20 +0200
commit2e923a0527ac439e135b9961e58d3acd876bba10 (patch)
tree7db98a5de65711cf9f6c6b28f404ab8076d52ba7 /drivers/media/usb/hdpvr/hdpvr-i2c.c
parent[media] usbtv: Throw corrupted frames away (diff)
downloadlinux-2e923a0527ac439e135b9961e58d3acd876bba10.tar.xz
linux-2e923a0527ac439e135b9961e58d3acd876bba10.zip
[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> Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/media/usb/hdpvr/hdpvr-i2c.c')
0 files changed, 0 insertions, 0 deletions