Bart Van Assche 157c46360c scsi: core: Fix the scsi_set_resid() documentation
commit f669b8a683e4ee26fa5cafe19d71cec1786b556a upstream.

Because scsi_finish_command() subtracts the residual from the buffer
length, residual overflows must not be reported. Reflect this in the SCSI
documentation. See also commit 9237f04e12cc ("scsi: core: Fix
scsi_get/set_resid() interface")

Cc: Damien Le Moal <dlemoal@kernel.org>
Cc: Hannes Reinecke <hare@suse.de>
Cc: Douglas Gilbert <dgilbert@interlog.com>
Cc: stable@vger.kernel.org
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20230721160154.874010-2-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-09-13 09:43:00 +02:00
..
2020-03-11 23:07:58 -04:00
2021-04-06 09:28:17 -06:00
2005-04-16 15:20:36 -07:00
2022-09-01 00:33:34 -04:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2005-04-16 15:20:36 -07:00
2020-03-11 23:07:59 -04:00
2020-03-11 23:08:00 -04:00
2005-04-16 15:20:36 -07:00
2020-03-11 23:08:00 -04:00
2020-03-11 23:08:01 -04:00
2021-02-22 10:24:58 -08:00
2020-03-11 23:08:02 -04:00
2020-03-11 23:08:02 -04:00