ALSA: compress: Use memdup_user() rather than duplicating its implementation
authorMarkus Elfring <elfring@users.sourceforge.net>
Sun, 21 Aug 2016 19:02:06 +0000 (21:02 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 22 Aug 2016 12:04:18 +0000 (14:04 +0200)
commitc2f14ba749c1ce94aa97c5a84733a89aaaadada4
tree133bcc943cd5ca94b7f5e4024e0e8f65c8eeba47
parent1bc00f32b87c24f1a981e6dcf3f2174babee93ad
ALSA: compress: Use memdup_user() rather than duplicating its implementation

Reuse existing functionality from memdup_user() instead of keeping
duplicate source code.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/compress_offload.c