CIFS: fix oops in cifs_lookup during net boot
commit0fbad7ae3c0d00c5e5f5951b1de5ef536dec2a5e
authorSteve French <sfrench@us.ibm.com>
Tue, 24 Nov 2009 22:17:59 +0000 (24 22:17 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 8 Dec 2009 18:20:53 +0000 (8 10:20 -0800)
treefa823e1e66cad172635592d8dbd826b3515c6643
parentfb598664ca7b2b807380be5a526378b4877e5e0d
CIFS: fix oops in cifs_lookup during net boot

commit 8e6c0332d5032aef2d3bc8f41771f999112c8c66 upstream.

Fixes bugzilla.kernel.org bug number 14641

Lookup called during network boot (network root filesystem
for diskless workstation) has case where nd is null in
lookup.  This patch fixes that in cifs_lookup.

(Shirish noted that 2.6.30 and 2.6.31 stable need the same check)

Signed-off-by: Shirish Pargaonkar <shirishp@us.ibm.com>
Acked-by: Jeff Layton <jlayton@redhat.com>
Tested-by: Vladimir Stavrinov <vs@inist.ru>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/cifs/dir.c