Re: [PATCH] ALSA: ac97: fix possible memory leak in snd_ac97_dev_register()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 19 Oct 2022 11:30:25 +0200,
Yang Yingliang wrote:
> 
> If device_register() fails in snd_ac97_dev_register(), it should
> call put_device() to give up reference, or the name allocated in
> dev_set_name() is leaked.
> 
> Fixes: 0ca06a00e206 ("[ALSA] AC97 bus interface for ad-hoc drivers")
> Signed-off-by: Yang Yingliang <yangyingliang@xxxxxxxxxx>

Thanks, applied.


Takashi



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux