ALSA: compress: Use kzalloc() for ioctls writing back data
authorTakashi Iwai <tiwai@suse.de>
Mon, 22 Apr 2013 08:38:26 +0000 (10:38 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 22 Apr 2013 08:40:29 +0000 (10:40 +0200)
commit47966e977952856f184c93c4ae5da11e151cb4a3
tree12c4ffd8df9e3300e510faf54131404a780dee2b
parent1c62e9f2b5a97c53aaae490f844949d32cca6dc6
ALSA: compress: Use kzalloc() for ioctls writing back data

Like the previous patch by Dan, we should clear the data to be
returned from certain compress ioctls, namely,
snd_compr_get_codec_caps() and snd_compr_get_params().
This time, we can simply replace kmalloc() with kzalloc().

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/compress_offload.c