]> git.itanic.dy.fi Git - linux-stable/commit
gfs2: Fix gfs2_file_buffered_write endless loop workaround
authorAndreas Gruenbacher <agruenba@redhat.com>
Thu, 17 Mar 2022 13:47:24 +0000 (14:47 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:06:49 +0000 (14:06 +0200)
commit6a5e6d01a6e9e2c9ce86ce540ee5ea22fa5c8304
tree869e3994aa6df1251dd9a9768df8184f2d65624b
parente9600f5c513021eed019397070d90973e44ad96f
gfs2: Fix gfs2_file_buffered_write endless loop workaround

commit 46f3e0421ccb5474b5c006b0089b9dfd42534bb6 upstream.

Since commit 554c577cee95b, gfs2_file_buffered_write() can accidentally
return a truncated iov_iter, which might confuse callers.  Fix that.

Fixes: 554c577cee95b ("gfs2: Prevent endless loops in gfs2_file_buffered_write")
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/gfs2/file.c