J. Bruce Fields 32b007b4e1 nfsd4: fix bad pointer on failure to find delegation
In case of a nonempty list, the return on error here is obviously bogus;
it ends up being a pointer to the list head instead of to any valid
delegation on the list.

In particular, if nfsd4_delegreturn() hits this case, and you're quite unlucky,
then renew_client may oops, and it may take an embarassingly long time to
figure out why.  Facepalm.

BUG: unable to handle kernel NULL pointer dereference at 0000000000000090
IP: [<ffffffff81292965>] nfsd4_delegreturn+0x125/0x200
...

Cc: stable@kernel.org
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
2011-03-07 11:44:53 -05:00
..
2011-01-04 18:22:10 -05:00
2010-10-27 21:39:39 +02:00
2011-01-11 15:04:09 -05:00
2009-12-20 20:19:51 -08:00
2011-01-04 16:49:22 -05:00
2011-02-14 10:35:19 -05:00
2010-07-30 12:54:54 -04:00