]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5781472c8a04852bc3afbf2471c441cdc85589ba
tree8be4924951564fb02964129570dd5c64c5e63584
parent61ff4eea1928f5785df74aa7d289905492f01f1c
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