]> git.karo-electronics.de Git - karo-tx-linux.git/commit
si4713-i2c: avoid potential buffer overflow on si4713
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 17 Jul 2011 03:24:37 +0000 (00:24 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 8 Aug 2011 17:23:07 +0000 (10:23 -0700)
commitabcd4aa304268111b33daa61cb4dbe75da41b3aa
treeb2a8604089ae3446465d3ab0f2ba97a5b7812f09
parent5bba1fce7f3a1a59d6c6893234df532fe6a43766
si4713-i2c: avoid potential buffer overflow on si4713

commit dc6b845044ccb7e9e6f3b7e71bd179b3cf0223b6 upstream.

While compiling it with Fedora 15, I noticed this issue:

  inlined from ‘si4713_write_econtrol_string’ at drivers/media/radio/si4713-i2c.c:1065:24:
  arch/x86/include/asm/uaccess_32.h:211:26: error: call to ‘copy_from_user_overflow’ declared with attribute error: copy_from_user() buffer size is not provably correct

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Acked-by: Sakari Ailus <sakari.ailus@maxwell.research.nokia.com>
Acked-by: Eduardo Valentin <edubezval@gmail.com>
Reviewed-by: Eugene Teo <eugeneteo@kernel.sg>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/media/radio/si4713-i2c.c