]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - sound/pci/asihpi/hpifunc.c
ALSA: asihpi: incorrect range check
[net-next-2.6.git] / sound / pci / asihpi / hpifunc.c
index 15f0c7ea0e52f68b6446e84bb1b5afa6cfd96626..eda26b31232445b781d9c0a4fd4a33e6a0e6863f 100644 (file)
@@ -3407,7 +3407,7 @@ u16 hpi_entity_alloc_and_pack(const enum e_entity_type type,
        if (hE)
                return hE;
 
-       HPI_DEBUG_ASSERT(role > entity_role_null && type < LAST_ENTITY_ROLE);
+       HPI_DEBUG_ASSERT(role > entity_role_null && type < LAST_ENTITY_TYPE);
 
        bytes_to_copy = entity_type_to_size[type] * item_count;
        total_size = hpi_entity_header_size(*entity) + bytes_to_copy;