diff options
| author | Kees Cook <[email protected]> | 2021-05-28 18:13:37 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2021-06-02 04:56:15 +0000 |
| commit | 5250db63d14002efce40f4d4fbfee3b81c829d54 (patch) | |
| tree | 67a189898f26aeeef68a02abd9e9e1712ff7dcee /drivers/scsi/mpi3mr/mpi/mpi30_init.h | |
| parent | scsi: esas2r: Switch to flexible array member (diff) | |
| download | kernel-5250db63d14002efce40f4d4fbfee3b81c829d54.tar.gz kernel-5250db63d14002efce40f4d4fbfee3b81c829d54.zip | |
scsi: isci: Use correctly sized target buffer for memcpy()
In preparation for FORTIFY_SOURCE performing compile-time and run-time
field bounds checking for memcpy(), avoid intentionally writing across
neighboring array fields.
Switch from rsp_ui to resp_buf, since resp_ui isn't SSP_RESP_IU_MAX_SIZE
bytes in length. This avoids future compile-time warnings.
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Gustavo A. R. Silva <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/scsi/mpi3mr/mpi/mpi30_init.h')
0 files changed, 0 insertions, 0 deletions
