Commit 2c9ef043 authored by Al Viro's avatar Al Viro Committed by Greg Kroah-Hartman
Browse files

fix a page leak in vhost_scsi_iov_to_sgl() error recovery



commit 11d49e9d 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: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 193fd09b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment