projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ALSA: usb-audio: Fix a limit check in proc_dump_substream_formats()
[linux-2.6-microblaze.git]
/
sound
/
usb
/
proc.c
diff --git
a/sound/usb/proc.c
b/sound/usb/proc.c
index
5a36e19
..
889c550
100644
(file)
--- a/
sound/usb/proc.c
+++ b/
sound/usb/proc.c
@@
-140,7
+140,7
@@
static void proc_dump_substream_formats(struct snd_usb_substream *subs, struct s
snd_iprintf(buffer, " Channel map:");
for (c = 0; c < map->channels; c++) {
- if (map->map[c] >=
sizeof
(channel_labels) ||
+ if (map->map[c] >=
ARRAY_SIZE
(channel_labels) ||
!channel_labels[map->map[c]])
snd_iprintf(buffer, " --");
else