diff options
author | Takashi Iwai <tiwai@suse.de> | 2017-08-22 08:15:13 +0200 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2017-11-11 13:33:24 +0000 |
commit | 599b7ea66b61f103f95ba7f67ac6c8ac098e7b32 (patch) | |
tree | bcc444ac987ed0608c2f7059078460996921faf9 /arch/mips | |
parent | 75152c6491999fa856390d196a38f4d03c184682 (diff) | |
download | linux-stable-599b7ea66b61f103f95ba7f67ac6c8ac098e7b32.tar.gz linux-stable-599b7ea66b61f103f95ba7f67ac6c8ac098e7b32.tar.bz2 linux-stable-599b7ea66b61f103f95ba7f67ac6c8ac098e7b32.zip |
ALSA: core: Fix unexpected error at replacing user TLV
commit 88c54cdf61f508ebcf8da2d819f5dfc03e954d1d upstream.
When user tries to replace the user-defined control TLV, the kernel
checks the change of its content via memcmp(). The problem is that
the kernel passes the return value from memcmp() as is. memcmp()
gives a non-zero negative value depending on the comparison result,
and this shall be recognized as an error code.
The patch covers that corner-case, return 1 properly for the changed
TLV.
Fixes: 8aa9b586e420 ("[ALSA] Control API - more robust TLV implementation")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'arch/mips')
0 files changed, 0 insertions, 0 deletions