summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifs_fs_sb.h
diff options
context:
space:
mode:
authorDave Kleikamp2009-08-31 17:07:12 +0200
committerSteve French2009-09-02 00:35:01 +0200
commit6ab409b53dcaf28f83d518a6702f904b7cee3f41 (patch)
tree050bfb690ac9df049343034681478a5bb174a823 /fs/cifs/cifs_fs_sb.h
parentcifs: protect GlobalOplock_Q with its own spinlock (diff)
downloadkernel-qcow2-linux-6ab409b53dcaf28f83d518a6702f904b7cee3f41.tar.gz
kernel-qcow2-linux-6ab409b53dcaf28f83d518a6702f904b7cee3f41.tar.xz
kernel-qcow2-linux-6ab409b53dcaf28f83d518a6702f904b7cee3f41.zip
cifs: Replace wrtPending with a real reference count
Currently, cifs_close() tries to wait until all I/O is complete and then frees the file private data. If I/O does not completely in a reasonable amount of time it frees the structure anyway, leaving a potential use- after-free situation. This patch changes the wrtPending counter to a complete reference count and lets the last user free the structure. Signed-off-by: Dave Kleikamp <shaggy@linux.vnet.ibm.com> Reviewed-by: Jeff Layton <jlayton@redhat.com> Tested-by: Shirish Pargaonkar <shirishp@us.ibm.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifs_fs_sb.h')
0 files changed, 0 insertions, 0 deletions