summaryrefslogtreecommitdiff
path: root/kernel/module.c
diff options
context:
space:
mode:
authorAlexey V. Vissarionov <gremlin@altlinux.org>2023-01-18 06:12:55 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-02-06 07:49:41 +0100
commit13c3fd34b9afffa4638987a76ed9da1773a667ec (patch)
treea31885067bfc4ce4bf3e50fd5c385d293d7a8558 /kernel/module.c
parent14b7058f0d123ab9a814a39ba7cbdc1c56cc5702 (diff)
scsi: hpsa: Fix allocation size for scsi_host_alloc()
[ Upstream commit bbbd25499100c810ceaf5193c3cfcab9f7402a33 ] The 'h' is a pointer to struct ctlr_info, so it's just 4 or 8 bytes, while the structure itself is much bigger. Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes: edd163687ea5 ("hpsa: add driver for HP Smart Array controllers.") Link: https://lore.kernel.org/r/20230118031255.GE15213@altlinux.org Signed-off-by: Alexey V. Vissarionov <gremlin@altlinux.org> Acked-by: Don Brace <don.brace@microchip.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'kernel/module.c')
0 files changed, 0 insertions, 0 deletions