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)
committerSteve French <smfrench@gmail.com>
Sat, 22 Oct 2011 17:29:35 +0000 (12:29 -0500)
commit42274bb22afc3e877ae5abed787b0b09d7dede52
treeb5ea479122408c396557975f52a13e8dd753cea1
parenta2d6b6cacb4fd4494b4037c01abb1332cefbb37b
CIFS: Fix DFS handling in cifs_get_file_info

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

Cc: <stable@kernel.org>
Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/inode.c