aboutsummaryrefslogtreecommitdiffstats
path: root/.mailmap
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2015-02-09 16:51:40 +0300
committerBen Hutchings <ben@decadent.org.uk>2015-05-09 23:16:15 +0100
commitd227837dc97ee54bff1dcf5579b8f42303a545ed (patch)
tree2b0a16365ad3d93593263468018c3ba24723ffca /.mailmap
parent25595132ea9d84a828f228aec150c65d4cf6816d (diff)
downloadkernel_samsung_smdk4412-d227837dc97ee54bff1dcf5579b8f42303a545ed.zip
kernel_samsung_smdk4412-d227837dc97ee54bff1dcf5579b8f42303a545ed.tar.gz
kernel_samsung_smdk4412-d227837dc97ee54bff1dcf5579b8f42303a545ed.tar.bz2
ALSA: off by one bug in snd_riptide_joystick_probe()
commit e4940626defdf6c92da1052ad3f12741c1a28c90 upstream. The problem here is that we check: if (dev >= SNDRV_CARDS) Then we increment "dev". if (!joystick_port[dev++]) Then we use it as an offset into a array with SNDRV_CARDS elements. if (!request_region(joystick_port[dev], 8, "Riptide gameport")) { This has 3 effects: 1) If you use the module option to specify the joystick port then it has to be shifted one space over. 2) The wrong error message will be printed on failure if you have over 32 cards. 3) Static checkers will correctly complain that are off by one. Fixes: db1005ec6ff8 ('ALSA: riptide - Fix joystick resource handling') Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions