diff options
author | Dan Carpenter <error27@gmail.com> | 2010-09-09 00:11:41 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2010-09-09 09:05:21 +0200 |
commit | a7a13d0676335a7dc9dd72264cca02606e43aaba (patch) | |
tree | 5c9a4c47f735174d13d3ab6d64c8c191d70d0968 /init | |
parent | 27f7ad53829f79e799a253285318bff79ece15bd (diff) | |
download | linux-a7a13d0676335a7dc9dd72264cca02606e43aaba.tar.gz linux-a7a13d0676335a7dc9dd72264cca02606e43aaba.tar.bz2 linux-a7a13d0676335a7dc9dd72264cca02606e43aaba.zip |
ALSA: rawmidi: fix the get next midi device ioctl
If we pass in a device which is higher than SNDRV_RAWMIDI_DEVICES then
the "next device" should be -1. This function just returns device + 1.
But the main thing is that "device + 1" can lead to a (harmless) integer
overflow and that annoys static analysis tools.
[fix the case for device == SNDRV_RAWMIDI_DEVICE by tiwai]
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions