]> git.proxmox.com Git - mirror_ubuntu-artful-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)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 19 Oct 2017 14:49:40 +0000 (09:49 -0500)
commitd6faaefb85b3d90fbac1b61598cb111bae702bb7
tree0f879f0c83bb3d9a73c95c191b5e821f3748ebf4
parentd907fb71da19a77672bcfbfe29455d9454e01756
more bio_map_user_iov() leak fixes

BugLink: http://bugs.launchpad.net/bugs/1724669
commit 2b04e8f6bbb196cab4b232af0f8d48ff2c7a8058 upstream.

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.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
block/bio.c