Hi,  this is for 4.3.3, which is a bit old, so I'm not filing  a bug.

static inline void * get_resp_ptr(U32 bkade, U32 q_id)
{
    blade_data_t * bd = bfr_blade_data + ssdId;
    bfr_pendcmd_q_t * pcq = bd->bfrpb_ques + q_id;
    blade_resp_t *    res = pcq->bfrpq_resp;

    return (void *)(res + pcq->bfrpq_resp_rdix);
}

I invoked this with a constant "q_id" value that was too large for the
bfrpb_ques array.
The error message indicated "array subscript is above array bounds" for the next
line.  I do hope it is no longer an issue. :)

Cheers - Bruce

Reply via email to