summaryrefslogtreecommitdiff
path: root/scripts/stackusage
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2026-04-14 15:22:12 +0200
committerTakashi Iwai <tiwai@suse.de>2026-04-15 14:27:27 +0200
commit4d5de85b6a9961130666070061a2466913a5c607 (patch)
tree5ec22ce74c4e6fea746b524205098b5abbe824fd /scripts/stackusage
parentf3c80e76a0e94c7c9771997de90f6a284b4f10d9 (diff)
ALSA: 6fire: Fix leftover global pointers after probe failures
snd-usb-6fire driver holds devices[] and chips[] pointer arrays to keep the usb_device and sfire_chip objects assigned to multiple interfaces. Those are, however, not properly cleared at the error path of usb6fire_chip_probe(), which may confuse the later probes. Also, the use of two pointer arrays makes things complicated; chips[] may be NULL while devices[] may be left over. For addressing this inconsistency, unify the pointer arrays, and use only chips[] for managing the multiple devices, while the device is checked with chip->dev pointer, instead. Also, the assignment of chips[] is moved at a later point where the probe successfully returns, so that we don't leave the pointer there after the error. Signed-off-by: Takashi Iwai <tiwai@suse.de> Link: https://patch.msgid.link/20260414132218.411013-3-tiwai@suse.de
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions