]> git.karo-electronics.de Git - karo-tx-linux.git/commit
av7110: check for negative array offset
authorDan Carpenter <error27@gmail.com>
Fri, 7 Jan 2011 19:41:54 +0000 (16:41 -0300)
committerAK <andi@firstfloor.org>
Thu, 31 Mar 2011 18:58:04 +0000 (11:58 -0700)
commit515884e98dc4f1c99387000d420394c3bc47c0d7
tree4f2a9fff17f4e4d8346ec8617dc38dda4f5b2513
parentac9a0f1a28f560f2c65ee6e2ae5b750fac9f14cb
av7110: check for negative array offset

commit cb26a24ee9706473f31d34cc259f4dcf45cd0644 upstream.

info->num comes from the user.  It's type int.  If the user passes
in a negative value that would cause memory corruption.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
drivers/media/dvb/ttpci/av7110_ca.c