nfsd: don't allow zero length strings in cache_parse()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 18 Jan 2012 09:56:02 +0000 (12:56 +0300)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 3 Feb 2012 19:26:42 +0000 (14:26 -0500)
commit6d8d17499810479eabd10731179c04b2ca22152f
treeb0c0324a0735ee98fc967ff034fc60e8035cdac8
parent62aa2b537c6f5957afd98e29f96897419ed5ebab
nfsd: don't allow zero length strings in cache_parse()

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>
Cc: stable@kernel.org
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/cache.c