]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: pcm: Create proc files only for non-empty preallocations
authorTakashi Iwai <tiwai@suse.de>
Tue, 5 Nov 2019 19:10:07 +0000 (20:10 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 6 Nov 2019 14:43:34 +0000 (15:43 +0100)
commit0c2d0262656311c1aa502cd3418446f4c7bce996
tree2c43485ace2671eb6f7860791286223d4c735ca7
parentae4c3124f9e63531a676c39fae2f57d11611be62
ALSA: pcm: Create proc files only for non-empty preallocations

It makes little sense to create prealloc proc files for streams that
have the zero max size, which is a typical case for vmalloc buffers.
Skip the proc file creations to save resources in such a case.

Link: https://lore.kernel.org/r/20191105191007.18150-3-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_memory.c