staging: wilc1000: prevent some overflows in debugfs
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 4 Jun 2015 08:59:34 +0000 (11:59 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Jun 2015 20:09:41 +0000 (13:09 -0700)
commit9ee81443b99ae3a022ba145ed62e22a5173e33f6
treea276e6067a34ed1939347c1b2e935806fe6e2051
parentd35ebe80259e889548aa9714e0365aa12fcba7a2
staging: wilc1000: prevent some overflows in debugfs

Add some limits here so we don't corrupt memory.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_debugfs.c