diff options
author | Pavel Shilovsky <piastryyy@gmail.com> | 2011-07-25 17:59:10 +0400 |
---|---|---|
committer | Jonas ABERG <jonas.aberg@stericsson.com> | 2011-10-28 11:06:46 +0200 |
commit | 69b9ea7e7ec0f998976cbfb4a303ff80892b6de5 (patch) | |
tree | ecb9c0067c3360b9c3c18ac132a7d059d182d129 /block/blk-map.c | |
parent | e1614f4142182f0cf4acee58cf1befd39fe9d81f (diff) |
CIFS: Fix oops while mounting with prefixpath
commit f5bc1e755d23d022bf948904386337fc3e5e29a8 upstream.
commit fec11dd9a0109fe52fd631e5c510778d6cbff6cc caused
a regression when we have already mounted //server/share/a
and want to mount //server/share/a/b.
The problem is that lookup_one_len calls __lookup_hash
with nd pointer as NULL. Then __lookup_hash calls
do_revalidate in the case when dentry exists and we end
up with NULL pointer deference in cifs_d_revalidate:
if (nd->flags & LOOKUP_RCU)
return -ECHILD;
Fix this by checking nd for NULL.
Signed-off-by: Pavel Shilovsky <piastryyy@gmail.com>
Reviewed-by: Shirish Pargaonkar <shirishp@us.ibm.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Change-Id: Id7970ed5e567fd21e42ec661c2ab0f366f12779f
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35604
Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Diffstat (limited to 'block/blk-map.c')
0 files changed, 0 insertions, 0 deletions