]> git.proxmox.com Git - mirror_zfs-debian.git/commit
Fix zpl_revalidate() NULL deref
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 22 Jan 2013 17:05:49 +0000 (09:05 -0800)
committerDarik Horn <dajhorn@vanadac.com>
Thu, 24 Jan 2013 04:50:58 +0000 (22:50 -0600)
commit8f2c4f78721d019d6291d418ba7fd6a32059d91d
treed650cfdbd49b566723456334362839ff6f4fdde7
parent4296f261f694efb2fc8abed21eda1f8e0be60831
Fix zpl_revalidate() NULL deref

In zpl_revalidate() it's possible for the nameidata to be NULL
for kernels which still accept the parameter.  In particular,
lookup_one_len() calls d_revalidate() with a NULL nameidata.

Resolve the issue by checking for a NULL nameidata in which case
just set the flags to 0.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1226
module/zfs/zpl_inode.c