]> 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)
commit7544dcb17df09075cec70072c12bb65b8463430b
tree8be4924951564fb02964129570dd5c64c5e63584
parent62f233499a7653686bb52e63c75e9ed12a7c1da2
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