summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorMilan P. Gandhi <mgandhi@redhat.com>2026-08-12 16:03:43 +0530
committerMartin K. Petersen (Oracle) <mkp@kernel.org>2026-08-28 21:57:18 -0400
commitdba9e2181ca5e875f98b8b9b4535cdaab87dcb0d (patch)
tree6babd8413c2c895d6e1d8e135e7b41f51752e8d7 /scripts/Makefile.thinlto
parentb2ededcb271b37510366cbf6853be193d681ba5c (diff)
scsi: mpi3mr: Fix NULL pointer dereference in mpi3mr_sas_port_add()
sas_port_alloc_num() can return NULL on memory allocation failure. The return value is passed directly to sas_port_add() without a NULL check, which causes a NULL pointer dereference. Additionally, if sas_port_add() fails, the allocated port is not freed before jumping to out_fail, leaking the sas_port structure. Call sas_port_free() to properly release it. Fixes: e22bae30667a ("scsi: mpi3mr: Add expander devices to STL") Signed-off-by: Milan P. Gandhi <mgandhi@redhat.com> Reviewed-by: Laurence Oberman <loberman@redhat.com> Link: https://patch.msgid.link/20260812103344.174247-2-mgandhi@redhat.com Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions