Staging: sep: potential buffer overflow in ioctl
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 29 Oct 2011 07:20:20 +0000 (10:20 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 27 Nov 2011 01:23:57 +0000 (17:23 -0800)
commit9638b67ba25b4a008767fca3b6f52d24400a8d1d
tree64b97208e939b96f83ef2409a5687d3d95be4697
parent23226977e9421434a2e7e384219477199ca5f0ec
Staging: sep: potential buffer overflow in ioctl

tail_size is determined by several variables that come from the user
so we should verify that it's not too large.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/sep/sep_driver.c