ALSA: seq: fix to copy from/to user space
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Tue, 13 Sep 2016 10:37:53 +0000 (19:37 +0900)
committerTakashi Iwai <tiwai@suse.de>
Tue, 13 Sep 2016 13:45:29 +0000 (15:45 +0200)
commit69b05825e1f883d15d3d051d0eab3171e247ecaa
treea0069de9a06b5fe2cde31bc1697cc324c7993ea0
parent071f1344f47946dfcb511bf0fbc998dd9a83be29
ALSA: seq: fix to copy from/to user space

When checking value of request for copy operation, current implementation
compares shifted value to macros, while these macros are already shifted.
As a result, it never performs to copy from/to user space.

This commit fixes the bug.

Fixes: 8ce8eb601c71('ALSA: seq: add an alternative way to handle ioctl requests'
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/seq/seq_clientmgr.c