]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: only unhash DRC entries that are in the hashtable
authorJeff Layton <jlayton@redhat.com>
Mon, 18 Mar 2013 14:49:07 +0000 (10:49 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 18 Mar 2013 18:58:32 +0000 (14:58 -0400)
commitb606cb9da0f80801ffde3f59a4d17f2604820ea4
tree568ca9715795381044455f55ca1c09fca20585fd
parent3829be578a2ef96ca061ccf37a65232d261a8e76
nfsd: only unhash DRC entries that are in the hashtable

It's not safe to call hlist_del() on a newly initialized hlist_node.
That leads to a NULL pointer dereference. Only do that if the entry
is hashed.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfscache.c