summaryrefslogtreecommitdiffstats
path: root/fs/signalfd.c
diff options
context:
space:
mode:
authorAlexey Khoroshilov <khoroshilov@ispras.ru>2013-07-03 16:17:34 -0300
committerMauro Carvalho Chehab <m.chehab@samsung.com>2013-07-26 10:32:48 -0300
commite2f11c58ae49d57b0e634685dd944c1771ba38c0 (patch)
tree7041da855d99ee57e181c72f26441d45a939c5b7 /fs/signalfd.c
parent4f24abb51ffe24d1a1442fdd3648a2e521487c1b (diff)
downloadlinux-e2f11c58ae49d57b0e634685dd944c1771ba38c0.tar.gz
linux-e2f11c58ae49d57b0e634685dd944c1771ba38c0.tar.bz2
linux-e2f11c58ae49d57b0e634685dd944c1771ba38c0.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>
Diffstat (limited to 'fs/signalfd.c')
0 files changed, 0 insertions, 0 deletions