Staging: silicom: add some range checks to proc functions
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 14 Sep 2012 06:56:00 +0000 (09:56 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Sep 2012 12:22:09 +0000 (05:22 -0700)
commite4c536b72fd6b25c7f4f9c6f293f43ba287b8e8f
tree3e84b0dbabe7b7932a83cca7ae62a46894c01820
parenta09b027882414f3e75398898905ffb1525056c55
Staging: silicom: add some range checks to proc functions

If you tried to cat more than 255 characters (the last character is for
the terminator) to these proc files then it would corrupt kernel memory.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Daniel Cotey <puff65537@bansheeslibrary.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/silicom/bp_mod.c