aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorVitaliy Shevtsov <[email protected]>2025-06-12 16:35:18 +0000
committerMartin K. Petersen <[email protected]>2025-06-16 21:52:05 +0000
commit2a8a5a5dd06eef580f9818567773fd75057cb875 (patch)
tree67a060ba1b84a881eb143b17803ead20c452b046 /lib/crypto/mpi/mpi-sub-ui.c
parentscsi: target: Fix NULL pointer dereference in core_scsi3_decode_spec_i_port() (diff)
downloadkernel-2a8a5a5dd06eef580f9818567773fd75057cb875.tar.gz
kernel-2a8a5a5dd06eef580f9818567773fd75057cb875.zip
scsi: elx: efct: Fix memory leak in efct_hw_parse_filter()
strsep() modifies the address of the pointer passed to it so that it no longer points to the original address. This means kfree() gets the wrong pointer. Fix this by passing unmodified pointer returned from kstrdup() to kfree(). Found by Linux Verification Center (linuxtesting.org) with Svace. Fixes: 4df84e846624 ("scsi: elx: efct: Driver initialization routines") Signed-off-by: Vitaliy Shevtsov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Daniel Wagner <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions