[IBAL] Fix overflow in loop counters when iterating over service entries.
authorftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Fri, 29 Sep 2006 23:06:45 +0000 (23:06 +0000)
committerftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Fri, 29 Sep 2006 23:06:45 +0000 (23:06 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@507 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

core/al/kernel/al_ioc_pnp.c

index 801ce6e..3cfee0b 100644 (file)
@@ -2126,7 +2126,8 @@ __svc_entry_resp(
        IN      OUT                     iou_ioc_t* const                        p_ioc,\r
        IN              const   ib_dm_mad_t* const                      p_mad )\r
 {\r
-       uint8_t                         idx, lo, hi;\r
+       uint16_t                        idx;\r
+       uint8_t                         lo, hi;\r
        ib_svc_entries_t        *p_svc_entries;\r
 \r
        AL_ENTER( AL_DBG_PNP );\r