Commit 0746556b authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller
Browse files

bna: off by one

The mod->mbhdlr[] array has BFI_MC_MAX elements.
Signed-off-by: default avatarDan Carpenter <>
Signed-off-by: default avatarDavid S. Miller <>
parent 8f8f103d
......@@ -1514,7 +1514,7 @@ bfa_nw_ioc_mbox_isr(struct bfa_ioc *ioc)
if ((mc > BFI_MC_MAX) || (mod->mbhdlr[mc].cbfn == NULL))
if ((mc >= BFI_MC_MAX) || (mod->mbhdlr[mc].cbfn == NULL))
mod->mbhdlr[mc].cbfn(mod->mbhdlr[mc].cbarg, &m);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment