nfsd: don't allow zero length strings in cache_parse()
commit8bb8ebe7b77228209006ea945104e37294608b93
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 18 Jan 2012 09:56:02 +0000 (18 12:56 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Apr 2012 16:27:21 +0000 (2 09:27 -0700)
treeaf8bec9326714b57304226280f2edad9cc1c6445
parent12810ac9f485e5ea6106181b3dcb690e986cc06a
nfsd: don't allow zero length strings in cache_parse()

commit 6d8d17499810479eabd10731179c04b2ca22152f upstream.

There is no point in passing a zero length string here and quite a
few of that cache_parse() implementations will Oops if count is
zero.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sunrpc/cache.c