bna: off by one in bfa_msgq_rspq_pi_update()
authorDan Carpenter <error27@gmail.com>
Wed, 24 Aug 2011 01:30:28 +0000 (01:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Aug 2011 16:55:18 +0000 (12:55 -0400)
commit18cf1248eca3f1fc38e12b314a6cadd286260e65
tree9e58836297302493e72a36f7432487c2709cc81e
parent44861f4455a77beaec2e53459c77b7fb0eda91a7
bna: off by one in bfa_msgq_rspq_pi_update()

The rspq->rsphdlr[] array has BFI_MC_MAX elements, so this test was
off by one.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Rasesh Mody <rmody@brocade.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/brocade/bna/bfa_msgq.c