diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2014-01-23 08:21:28 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-02-06 19:22:18 (GMT) |
commit | dfcede768466b6a0c39128a25541f2f0db6f42bd (patch) | |
tree | 724c8d56da7070d841eb0231f3c7c5a0b8053d5b /sound/pci/hda | |
parent | a3e79cff3880637211431a0858c796070f3bc1c7 (diff) | |
download | linux-fsl-qoriq-dfcede768466b6a0c39128a25541f2f0db6f42bd.tar.xz |
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/pci/hda')
0 files changed, 0 insertions, 0 deletions