]> git.baikalelectronics.ru Git - kernel.git/commit
lib/iov_iter: initialize "flags" in new pipe_buffer
authorMax Kellermann <max.kellermann@ionos.com>
Mon, 21 Feb 2022 10:03:13 +0000 (11:03 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 21 Feb 2022 15:16:39 +0000 (10:16 -0500)
commit7c7ae2542effec7ae6d713d45ac3bc3919d099ef
tree6fd927bf2352829dc3ac98783852e293a352c668
parent991a5e519c2aa1f4ed2bf6e2139997d7e7967cb3
lib/iov_iter: initialize "flags" in new pipe_buffer

The functions copy_page_to_iter_pipe() and push_pipe() can both
allocate a new pipe_buffer, but the "flags" member initializer is
missing.

Fixes: 1e5e29513931 ("new iov_iter flavour: pipe-backed")
To: Alexander Viro <viro@zeniv.linux.org.uk>
To: linux-fsdevel@vger.kernel.org
To: linux-kernel@vger.kernel.org
Cc: stable@vger.kernel.org
Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
lib/iov_iter.c