]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
ceph: fix null pointer dereference in ceph_init_dentry for nfs reexport
authorSage Weil <sage@newdream.net>
Fri, 17 Dec 2010 17:53:41 +0000 (09:53 -0800)
committerSage Weil <sage@newdream.net>
Fri, 17 Dec 2010 17:53:48 +0000 (09:53 -0800)
commit92cf765237e2787eb168096305c448caf25ac7f8
tree089f6d5a0f979ca858295cbf616ee2e85a62680f
parentab226e21ad34f6ef52e00d2ab399d2364b4cdfee
ceph: fix null pointer dereference in ceph_init_dentry for nfs reexport

The fh_to_dentry etc. methods use ceph_init_dentry(), which assumes that
d_parent is defined.  It isn't for those callers, so check!

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