CIFS: Fix ERR_PTR dereference in cifs_get_root
authorPavel Shilovsky <piastryyy@gmail.com>
Sun, 21 Aug 2011 15:30:15 +0000 (19:30 +0400)
committerSteve French <sfrench@us.ibm.com>
Tue, 20 Sep 2011 02:15:03 +0000 (21:15 -0500)
commit5b980b01212199833ee8023770fa4cbf1b85e9f4
tree71a184539229d6067185a3b57bebb6e422a7c48f
parent9438fabb73eb48055b58b89fc51e0bc4db22fabd
CIFS: Fix ERR_PTR dereference in cifs_get_root

move it to the beginning of the loop.

Signed-off-by: Pavel Shilovsky <piastryyy@gmail.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifsfs.c