mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-13 14:24:11 +08:00
scsi: target/iscsi: Make iscsit_ta_authentication() respect the output buffer size
[ Upstream commit35bea5c84f
] Fixes:e48354ce07
("iscsi-target: Add iSCSI fabric support for target v4.1") Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com> Reviewed-by: Mike Christie <mchristi@redhat.com> Cc: Mike Christie <mchristi@redhat.com> Cc: Christoph Hellwig <hch@lst.de> Cc: Hannes Reinecke <hare@suse.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Sasha Levin <alexander.levin@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2cbead46fd
commit
bdfc40bc1b
@ -633,8 +633,7 @@ int iscsit_ta_authentication(struct iscsi_portal_group *tpg, u32 authentication)
|
||||
none = strstr(buf1, NONE);
|
||||
if (none)
|
||||
goto out;
|
||||
strncat(buf1, ",", strlen(","));
|
||||
strncat(buf1, NONE, strlen(NONE));
|
||||
strlcat(buf1, "," NONE, sizeof(buf1));
|
||||
if (iscsi_update_param_value(param, buf1) < 0)
|
||||
return -EINVAL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user