forked from Minki/linux
366a20d7a7
At present, private data of each driver in ALSA firewire stack is allocated/freed by kernel slab allocator for corresponding unit on IEEE 1394 bus. In this case, resource-managed slab allocator is available to release memory object automatically just before releasing device structure for the unit. This idea can prevent runtime from memory leak due to programming mistakes. This commit uses the allocator for the private data. These drivers already use reference counter to maintain lifetime of device structure for the unit by a pair of fw_unit_get()/fw_unit_put(). The private data is safely released in a callback of 'struct snd_card.private_free(). Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de> |
||
---|---|---|
.. | ||
amdtp-dot.c | ||
digi00x-hwdep.c | ||
digi00x-midi.c | ||
digi00x-pcm.c | ||
digi00x-proc.c | ||
digi00x-stream.c | ||
digi00x-transaction.c | ||
digi00x.c | ||
digi00x.h | ||
Makefile |