Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scsi: sg: add sg_remove_request in sg_write
commit 83c6f23 upstream. If the __copy_from_user function failed we need to call sg_remove_request in sg_write. Link: https://lore.kernel.org/r/[email protected] Acked-by: Douglas Gilbert <[email protected]> Signed-off-by: Wu Bo <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]> Signed-off-by: Sasha Levin <[email protected]> [groeck: Backport to v5.4.y and older kernels] Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Lee Jones <[email protected]> Change-Id: I827ec9cf2ac7d7b94941956db5b7a37af8413bf6
- Loading branch information