]> asedeno.scripts.mit.edu Git - linux.git/commit
fix a page leak in vhost_scsi_iov_to_sgl() error recovery
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 24 Sep 2017 22:36:44 +0000 (18:36 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 12 Oct 2017 02:36:54 +0000 (22:36 -0400)
commit11d49e9d089ccec81be87c2386dfdd010d7f7f6e
treeb0f7adbe5d724edf295cfe639352273096ee9bda
parent09cf698a594276139b7dfafb232af3fe4fbc4438
fix a page leak in vhost_scsi_iov_to_sgl() error recovery

we are advancing sg as we go, so the pages we need to drop in
case of error are *before* the current sg.

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