diff options
| author | Takashi Iwai <tiwai@suse.de> | 2026-10-01 17:10:36 +0200 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2026-10-01 17:23:37 +0200 |
| commit | e6229c0402ea4863ec74802d79d5b52b9398d66c (patch) | |
| tree | d938a91d39aaa210a39869f66fa81e319e460e8b /tools/lib/python/kdoc/python_version.py | |
| parent | f1d565dc92955f05383794e0fa27e61ee0555027 (diff) | |
| download | linux-next-e6229c0402ea4863ec74802d79d5b52b9398d66c.tar.gz linux-next-e6229c0402ea4863ec74802d79d5b52b9398d66c.zip | |
ALSA: ice1712: Fix the error handling via auto-cleanup at probe
We used the auto-cleanup via snd_card_unref() for errors at probe of
ice1712 driver, but this may be problematic in a subtle way when an
error happens at snd_card_register(); since snd_card_unref() skips the
snd_card_disconnect() call, it may miss some resource clearance.
For fixing the issue, use the new __free(snd_card_free) instead, which
does call snd_card_free() explicitly at errors for avoiding such a
pitfall.
Fixes: d736eba9c453 ("ALSA: ice1712: Fix the card leak at probe error with the auto-cleanup")
Link: https://patch.msgid.link/20261001151039.592033-2-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
