]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Revert "ALSA: pcmtest: fix reference leak on failed device registration"
authorTakashi Iwai <tiwai@suse.de>
Thu, 23 Apr 2026 07:52:05 +0000 (09:52 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 23 Apr 2026 08:57:53 +0000 (10:57 +0200)
commit2724fbc90e5c133fbbd030e72fe8a3869a20df08
tree15fa73327b6226c7c161e6422f263cc20a9c942e
parent2699bc6d062735f9fc430fe6dcf05b82ae8b2ab9
Revert "ALSA: pcmtest: fix reference leak on failed device registration"

We'd like to address the problem rather in the error code path of
platform_device_register() itself instead of leaving it all callers,
since less than 1% of all callers of over 100
platform_device_register() do call platform_device_put() properly as
of now.

For making the work easier, revert the previous change commit
4ff036f95238 ("ALSA: pcmtest: fix reference leak on failed device
registration") again.

Link: https://lore.kernel.org/20260415193138.3861297-1-lgs201920130244@gmail.com
Link: https://patch.msgid.link/20260423075211.3977366-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/drivers/pcmtest.c