mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-08 18:57:22 +00:00
If ac97_add_adapter() fails, put_device() is the correct way to drop
the device reference. kfree() is not required.
Add kfree() if idr_alloc() fails and in ac97_adapter_release() to do
the cleanup.
Found by code review.
Fixes:
|
History
|
|
|---|---|---|
| .. | ||
| ac97_core.h | ||
| bus.c | ||
| codec.c | ||
| Kconfig | ||
| Makefile | ||
| snd_ac97_compat.c | ||