]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scsi: mpi3mr: Fix an issue found by KASAN
authorTomas Henzl <thenzl@redhat.com>
Mon, 13 Feb 2023 19:37:52 +0000 (20:37 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Mar 2023 12:50:35 +0000 (13:50 +0100)
commitc8755f913a2fc9c168d108ea8c5af04716e8c4a5
tree5df70fe6aba94b21372385ce0bc62caec9f46a3d
parent47088e61202ee15ecb00ba2f62749fdc9bbd7202
scsi: mpi3mr: Fix an issue found by KASAN

[ Upstream commit ae7d45f5283d30274039b95d3e6d53d33c66e991 ]

Write only correct size (32 instead of 64 bytes).

Link: https://lore.kernel.org/r/20230213193752.6859-1-thenzl@redhat.com
Fixes: 42fc9fee116f ("scsi: mpi3mr: Add helper functions to manage device's port")
Signed-off-by: Tomas Henzl <thenzl@redhat.com>
Acked-by: Sathya Prakash Veerichetty <sathya.prakash@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/mpi3mr/mpi3mr_transport.c