diff options
| author | Ben Hutchings <[email protected]> | 2024-08-21 22:51:42 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2024-08-23 01:04:12 +0000 |
| commit | 919ddf8336f0b84c0453bac583808c9f165a85c2 (patch) | |
| tree | b5da72a486360a3028078dbb5a3945c9c9122d68 /lib/debugobjects.c | |
| parent | scsi: lpfc: Fix overflow build issue (diff) | |
| download | kernel-919ddf8336f0b84c0453bac583808c9f165a85c2.tar.gz kernel-919ddf8336f0b84c0453bac583808c9f165a85c2.zip | |
scsi: aacraid: Fix double-free on probe failure
aac_probe_one() calls hardware-specific init functions through the
aac_driver_ident::init pointer, all of which eventually call down to
aac_init_adapter().
If aac_init_adapter() fails after allocating memory for aac_dev::queues,
it frees the memory but does not clear that member.
After the hardware-specific init function returns an error,
aac_probe_one() goes down an error path that frees the memory pointed to
by aac_dev::queues, resulting.in a double-free.
Reported-by: Michael Gordon <[email protected]>
Link: https://bugs.debian.org/1075855
Fixes: 8e0c5ebde82b ("[SCSI] aacraid: Newer adapter communication iterface support")
Signed-off-by: Ben Hutchings <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions
