]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - block/bio.c
more bio_map_user_iov() leak fixes
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 23 Sep 2017 19:51:23 +0000 (15:51 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 11 Oct 2017 03:54:57 +0000 (23:54 -0400)
commit2b04e8f6bbb196cab4b232af0f8d48ff2c7a8058
tree8be4924951564fb02964129570dd5c64c5e63584
parent95d78c28b5a85bacbc29b8dba7c04babb9b0d467
more bio_map_user_iov() leak fixes

we need to take care of failure exit as well - pages already
in bio should be dropped by analogue of bio_unmap_pages(),
since their refcounts had been bumped only once per reference
in bio.

Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
block/bio.c