diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2014-01-23 11:21:28 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-02-06 11:22:18 -0800 |
commit | dfcede768466b6a0c39128a25541f2f0db6f42bd (patch) | |
tree | 724c8d56da7070d841eb0231f3c7c5a0b8053d5b /sound/sparc | |
parent | a3e79cff3880637211431a0858c796070f3bc1c7 (diff) |
ALSA: bits vs bytes bug in snd_card_create()
commit 4c3773eda49c872a3034382f8ec3080002e715bf upstream.
The test here is intended intended to prevent shift wrapping bugs when
we do "1U << idx2". We should consider the number of bits in a u32
instead of the number of bytes.
[fix another chunk similarly by tiwai]
Fixes: 7bb2491b35a2 ('ALSA: Add kconfig to specify the max card numbers')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound/sparc')
0 files changed, 0 insertions, 0 deletions