Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scsi: hpsa: Fix allocation size for scsi_host_alloc()
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: edd1636 ("hpsa: add driver for HP Smart Array controllers.") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexey V. Vissarionov <[email protected]> Acked-by: Don Brace <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
- Loading branch information