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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Nov 2017 08:39:05 +0000 (08:39 +0000)
commit2c9ef0433c37b0db59c3b32416a75a8a54b2fbed
tree5777046d16c01462e021a71a69b06f14372034fd
parent193fd09bd91b62d9ad84f88830994497bd901647
fix a page leak in vhost_scsi_iov_to_sgl() error recovery

commit 11d49e9d089ccec81be87c2386dfdd010d7f7f6e upstream.

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

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/vhost/scsi.c