[alsa-devel] [PATCH 0/5] ALSA: use managed-resource to maintain allocated buffers

Takashi Iwai tiwai at suse.de
Thu Oct 4 07:55:02 CEST 2018


On Wed, 03 Oct 2018 01:21:49 +0200,
Takashi Sakamoto wrote:
> 
> Hi,
> 
> Linux Device Driver subsystem has a feature of 'devres', which is
> resource allocator/deallocator synchronously to reference counter
> of kobject corresponding to device structure. This feature avoid
> memory leak from programming mistakes.
> 
> This patchset replaces calls of allocator/deallocator with devres
> helper functions. There're two types of target device structure;
> firewire unit device and sound card device. All drivers in ALSA
> firewire stack use reference counting to serialize timing to
> release the type of two device, therefore no worries of
> dereferencing to released memory objects.
> 
> This patchset is for v4.20 and based on my series of fix patches
> in 'sound-4.19-rc5' branch. But current 'for-next' branch doesn't
> include them. So this patchset is rebased to upstream 'master'
> branch (HEAD=067284726963). I'm OK to take them pending till
> the '-rc5' is merged.
> 
> Takashi Sakamoto (5):
>   ALSA: firewire: use managed-resource of fw unit device for private
>     data
>   ALSA: bebob: use managed-resource to maintain data specific to M-Audio
>     FW-1814/ProjectMix I/O
>   ALSA: fireworks: use managed-resource to maintain response buffer
>   ALSA: oxfw: use managed-resource to maintain model-specific data
>   ALSA: oxfw: use managed-resource to maintain cache of stream formats

I merged for-linus into for-next, and applied all five patches now.
Thanks.


Takashi


More information about the Alsa-devel mailing list