summaryrefslogtreecommitdiff
path: root/fs/qnx6
diff options
context:
space:
mode:
authorSachin Prabhu <sprabhu@redhat.com>2016-07-07 21:28:27 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-08-20 18:09:20 +0200
commit36e6321056ba24f004bfc16d4398e65a6651f843 (patch)
tree4b160b6001babf3fb80756d5ae5f0e703565c4a1 /fs/qnx6
parenta636a9b1306587bbfab54b1e435461289a4c2c35 (diff)
cifs: Check for existing directory when opening file with O_CREAT
commit 8d9535b6efd86e6c07da59f97e68f44efb7fe080 upstream. When opening a file with O_CREAT flag, check to see if the file opened is an existing directory. This prevents the directory from being opened which subsequently causes a crash when the close function for directories cifs_closedir() is called which frees up the file->private_data memory while the file is still listed on the open file list for the tcon. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com> Signed-off-by: Steve French <smfrench@gmail.com> Reported-by: Xiaoli Feng <xifeng@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/qnx6')
0 files changed, 0 insertions, 0 deletions