aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorYang Yingliang <[email protected]>2022-11-11 12:30:12 +0800
committerMartin K. Petersen <[email protected]>2022-11-25 23:36:23 +0000
commitfda34a5d304d0b98cc967e8763b52221b66dc202 (patch)
tree8d9b581cec6f3bd5fc0aef8fa00e6c623231275f /lib/mpi/mpi-sub-ui.c
parent4ef174a3ad9b5d73c1b6573e244ebba2b0d86eac (diff)
scsi: hpsa: Fix possible memory leak in hpsa_add_sas_device()
If hpsa_sas_port_add_rphy() returns an error, the 'rphy' allocated in sas_end_device_alloc() needs to be freed. Address this by calling sas_rphy_free() in the error path. Fixes: d04e62b9d63a ("hpsa: add in sas transport class") Signed-off-by: Yang Yingliang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions