summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_re.py
diff options
context:
space:
mode:
authorVitaliy Shevtsov <v.shevtsov@mt-integration.ru>2025-06-12 21:35:18 +0500
committerMartin K. Petersen <martin.petersen@oracle.com>2025-06-16 17:52:05 -0400
commit2a8a5a5dd06eef580f9818567773fd75057cb875 (patch)
tree67a060ba1b84a881eb143b17803ead20c452b046 /scripts/lib/kdoc/kdoc_re.py
parentd8ab68bdb294b09a761e967dad374f2965e1913f (diff)
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 <v.shevtsov@mt-integration.ru> Link: https://lore.kernel.org/r/20250612163616.24298-1-v.shevtsov@mt-integration.ru Reviewed-by: Daniel Wagner <dwagner@suse.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_re.py')
0 files changed, 0 insertions, 0 deletions