summaryrefslogtreecommitdiff
path: root/sound/core/info.c?id=ffb73b08e79418fbf3f2ea44a7818a6715399d2c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2017-05-22 17:39:13 +0200
committerTakashi Iwai <tiwai@suse.de>2017-05-23 07:04:06 +0200
commitffb73b08e79418fbf3f2ea44a7818a6715399d2c (patch)
tree4506b419460f8819ab5e1053510301f1bc466b19 /sound/core/info.c?id=ffb73b08e79418fbf3f2ea44a7818a6715399d2c
parentc2c86a97175f552fd32b339426a489c7af818123 (diff)
ALSA: info: Use kvzalloc() for a temporary write buffer
We used to use kmalloc (more exactly, krealloc()) for creating and growing the temporary buffer for text proc write. It can grow up to 16kB, and it's already a bit doubtful whether it's always safe to use kmalloc(). With the recent addition of kvmalloc(), we can have a better chance for succeed of memory allocation, so let's switch to that new API. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/info.c?id=ffb73b08e79418fbf3f2ea44a7818a6715399d2c')
0 files changed, 0 insertions, 0 deletions