Files
twx-linux/drivers
Bodo Stroesser 34b4e94843 scsi: target: fix PR IN / READ FULL STATUS for FC
[ Upstream commit 8fed04eb79 ]

Creation of the response to READ FULL STATUS fails for FC based
reservations. Reason is the too high loop limit (< 24) in
fc_get_pr_transport_id(). The string representation of FC WWPN is 23 chars
long only ("11:22:33:44:55:66:77:88"). So when i is 23, the loop body is
executed a last time for the ending '\0' of the string and thus hex2bin()
reports an error.

Link: https://lore.kernel.org/r/20200408132610.14623-3-bstroesser@ts.fujitsu.com
Signed-off-by: Bodo Stroesser <bstroesser@ts.fujitsu.com>
Reviewed-by: Mike Christie <mchristi@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-05-02 17:25:56 +02:00
..
2020-04-23 10:30:20 +02:00
…
…
…
…
2020-03-11 14:14:45 +01:00
…
2020-04-13 10:45:03 +02:00
…
…
…
2020-03-20 11:55:59 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-02-24 08:34:47 +01:00
…
…
…