]> git.baikalelectronics.ru Git - kernel.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:55:29 +0000 (13:55 +0100)
commitf0dbc5fddea9891d0fe9bd50c74fbbe0eedd91a3
treec42268e076f4d473e6aca75b02899321af06bc57
parent8a352b60ec5efddca60649e8aa8c9cb4d172b7e0
scsi: mpi3mr: Fix an issue found by KASAN

[ Upstream commit 24f3e8b79f926f75f0f180328534d491fc9ef01c ]

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

Link: https://lore.kernel.org/r/20230213193752.6859-1-thenzl@redhat.com
Fixes: 33266bf2c87e ("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