]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: fix possible double-free of mds request reference
authorSage Weil <sage@newdream.net>
Wed, 10 Mar 2010 20:03:32 +0000 (12:03 -0800)
committerSage Weil <sage@newdream.net>
Tue, 23 Mar 2010 14:47:06 +0000 (07:47 -0700)
commit9ce6e6a1c47437dac9084476d530b46b32d12615
tree5c628bcf731c98f5627000192e7f2d23a7a039a5
parent91de87f39fba585919a938fedb5be1de606105c6
ceph: fix possible double-free of mds request reference

Clear pointer to mds request after dropping the reference to
ensure we don't drop it again, as there is at least one error
path through this function that does not reset fi->last_readdir
to a new value.

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/dir.c