summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAdam McCoy <adam@forsedomani.com>2020-05-13 11:53:30 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-05-20 08:20:34 +0200
commitf8e370ccab353c362288e5df6b8879cc74abf171 (patch)
treeb478bca90f9294848310d26e7357f6932c24f3b4 /include/linux
parent4e06196336a18263fe3b25bc9627cf9437d16acf (diff)
cifs: fix leaked reference on requeued write
commit a48137996063d22ffba77e077425f49873856ca5 upstream. Failed async writes that are requeued may not clean up a refcount on the file, which can result in a leaked open. This scenario arises very reliably when using persistent handles and a reconnect occurs while writing. cifs_writev_requeue only releases the reference if the write fails (rc != 0). The server->ops->async_writev operation will take its own reference, so the initial reference can always be released. Signed-off-by: Adam McCoy <adam@forsedomani.com> Signed-off-by: Steve French <stfrench@microsoft.com> CC: Stable <stable@vger.kernel.org> Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions