]> git.karo-electronics.de Git - linux-beck.git/commit
NFSD: forget_delegations should use list_for_each_entry_safe
authorBryan Schumaker <bjschuma@netapp.com>
Wed, 14 Dec 2011 19:39:56 +0000 (14:39 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 14 Dec 2011 22:38:00 +0000 (17:38 -0500)
commit2d3475c0ad625f7a43844a6cd0130d136416e604
tree3f1317a2afcddf614dec6fe5e8dc36ef05a139a1
parent39c4cc0fcc38cff29d5b9884372b17c894c9c080
NFSD: forget_delegations should use list_for_each_entry_safe

Otherwise the for loop could try to use a file recently removed from the
file_hashtbl list and oops.

Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Tested-by: Casey Bodley <cbodley@citi.umich.edu>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c