diff options
author | Jeff Layton <jlayton@redhat.com> | 2010-11-08 13:28:32 +0100 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2010-11-08 19:56:36 +0100 |
commit | 618763958b2291a09057dbfa553da6ded93dcfad (patch) | |
tree | 985c2e8eba7e0b63f0c9ac314fa1bf6c311aee73 /fs/cifs/inode.c | |
parent | ipw2x00: remove the right /proc/net entry (diff) | |
download | linux-618763958b2291a09057dbfa553da6ded93dcfad.tar.xz linux-618763958b2291a09057dbfa553da6ded93dcfad.zip |
cifs: make cifs_ioctl handle NULL filp->private_data correctly
Commit 13cfb7334e made cifs_ioctl use the tlink attached to the
cifsFileInfo for a filp. This ignores the case of an open directory
however, which in CIFS can have a NULL private_data until a readdir
is done on it.
This patch re-adds the NULL pointer checks that were removed in commit
50ae28f01 and moves the setting of tcon and "caps" variables lower.
Long term, a better fix would be to establish a f_op->open routine for
directories that populates that field at open time, but that requires
some other changes to how readdir calls are handled.
Reported-by: Kjell Rune Skaaraas <kjella79@yahoo.no>
Reviewed-and-Tested-by: Suresh Jayaraman <sjayaraman@suse.de>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/inode.c')
0 files changed, 0 insertions, 0 deletions