]> git.baikalelectronics.ru Git - kernel.git/commit
[CIFS] fix oops in cifs_lookup during net boot
authorSteve French <sfrench@us.ibm.com>
Tue, 24 Nov 2009 22:17:59 +0000 (22:17 +0000)
committerSteve French <sfrench@us.ibm.com>
Tue, 24 Nov 2009 22:17:59 +0000 (22:17 +0000)
commit02c445e0a23817f3f0e5af4a3b1468ed35cea9cc
tree2b6282cd749f7a80f1ca34995f0e984a639cc144
parentc9f98df750a17688096d8e77b1b8d87d4d68046c
[CIFS] fix oops in cifs_lookup during net boot

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>
CC: Stable <stable@kernel.org>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/dir.c