aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-05-14 10:50:05 -0400
committerTakashi Iwai <tiwai@suse.de>2010-05-17 02:10:34 -0400
commit1be1d76b8a1f622fd3a64778dfe117053f2af1f2 (patch)
tree589a35b6ae71b544d1f1a0590f176f16268ef1b0 /sound/pci
parent2448b14715bc83d75ed779452fe89285df4d772a (diff)
ALSA: asihpi: incorrect range check
The entity_type_to_size[] array has LAST_ENTITY_TYPE (11) number of elements, not LAST_ENTITY_ROLE (17). This only affects the debug output. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r--sound/pci/asihpi/hpifunc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/asihpi/hpifunc.c b/sound/pci/asihpi/hpifunc.c
index 15f0c7ea0e52..eda26b312324 100644
--- a/sound/pci/asihpi/hpifunc.c
+++ b/sound/pci/asihpi/hpifunc.c
@@ -3407,7 +3407,7 @@ u16 hpi_entity_alloc_and_pack(const enum e_entity_type type,
3407 if (hE) 3407 if (hE)
3408 return hE; 3408 return hE;
3409 3409
3410 HPI_DEBUG_ASSERT(role > entity_role_null && type < LAST_ENTITY_ROLE); 3410 HPI_DEBUG_ASSERT(role > entity_role_null && type < LAST_ENTITY_TYPE);
3411 3411
3412 bytes_to_copy = entity_type_to_size[type] * item_count; 3412 bytes_to_copy = entity_type_to_size[type] * item_count;
3413 total_size = hpi_entity_header_size(*entity) + bytes_to_copy; 3413 total_size = hpi_entity_header_size(*entity) + bytes_to_copy;