Fix zpl_revalidate() NULL deref
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 22 Jan 2013 17:05:49 +0000 (09:05 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 22 Jan 2013 17:38:17 +0000 (09:38 -0800)
commit09a661e960df49f1256ba4c5ae15f6956d27df84
tree8b03581b19d0fa08227b204cde42e8df47b7916e
parentee93035378ff1f0769bb4216dc35057a2f14f9b9
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