]> git.karo-electronics.de Git - linux-beck.git/commit
cifs: file: initialize oparms.reconnect before using it
authorAndi Shyti <andi@etezian.org>
Mon, 29 Jul 2013 18:04:35 +0000 (20:04 +0200)
committerSteve French <smfrench@gmail.com>
Wed, 31 Jul 2013 04:54:49 +0000 (23:54 -0500)
commitfe090e4e44bac1d7d8c0ebd1dfa4e6007e1b2762
tree63c1464c9b8e598ebacfeedf98600876be0dee8b
parent1b244081af462c223cfa6a1ae881a902af64c306
cifs: file: initialize oparms.reconnect before using it

In the cifs_reopen_file function, if the following statement is
asserted:

(tcon->unix_ext && cap_unix(tcon->ses) &&
            (CIFS_UNIX_POSIX_PATH_OPS_CAP &
            (tcon->fsUnixInfo.Capability)))

and we succeed to open with cifs_posix_open, the function jumps
to the label reopen_success and checks for oparms.reconnect
which is not initialized.

This issue has been reported by scan.coverity.com

Signed-off-by: Andi Shyti <andi@etezian.org>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/file.c