[CIFS] fix posix open regression
authorSteve French <sfrench@us.ibm.com>
Thu, 21 May 2009 22:21:53 +0000 (22:21 +0000)
committerSteve French <sfrench@us.ibm.com>
Thu, 21 May 2009 22:38:08 +0000 (22:38 +0000)
commit703a3b8e5c01cf6fb33c6d8dc99905f889a4e992
tree56b6f7bd0379efc28fd488b15fe121a03d092f3d
parent5805977e63a36ad56594a623f3bd2bebcb7db233
[CIFS] fix posix open regression

Posix open code was not properly adding the file to the
list of open files.  Fix  allocating cifsFileInfo
more than once, and adding twice to flist and tlist.
Also fix mode setting to be done in one place in these
paths.

Signed-off-by: Steve French <sfrench@us.ibm.com>
Reviewed-by: Shirish Pargaonkar <shirishp@us.ibm.com>
Tested-by: Jeff Layton <jlayton@redhat.com>
Tested-by: Luca Tettamanti <kronos.it@gmail.com>
fs/cifs/dir.c
fs/cifs/file.c