git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27f7ad5
)
ALSA: rawmidi: fix the get next midi device ioctl
author
Dan Carpenter
<error27@gmail.com>
Wed, 8 Sep 2010 22:11:41 +0000
(
00:11
+0200)
committer
Takashi Iwai
<tiwai@suse.de>
Thu, 9 Sep 2010 07:05:21 +0000
(09:05 +0200)
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>
sound/core/rawmidi.c
patch
|
blob
|
history
diff --cc
sound/core/rawmidi.c
Simple merge