CIFS: Fix DFS handling in cifs_get_file_info
authorPavel Shilovsky <piastry@etersoft.ru>
Sat, 22 Oct 2011 10:37:50 +0000 (14:37 +0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Nov 2011 17:35:11 +0000 (09:35 -0800)
commite842a3e0d2bd01e0e32c0af4ef266f08b9b9ef75
tree6786c08b37fccd8f772653db0495451061d4d5b7
parent2d925a5b8e7ea244bca1e988df4ce0c6db0c4d07
CIFS: Fix DFS handling in cifs_get_file_info

commit 42274bb22afc3e877ae5abed787b0b09d7dede52 upstream.

We should call cifs_all_info_to_fattr in rc == 0 case only.

Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/cifs/inode.c