projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f8f103
)
bna: off by one
author
Dan Carpenter
<error27@gmail.com>
Sun, 19 Sep 2010 18:25:54 +0000
(11:25 -0700)
committer
David S. Miller
<davem@davemloft.net>
Sun, 19 Sep 2010 18:25:54 +0000
(11:25 -0700)
The mod->mbhdlr[] array has BFI_MC_MAX elements.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bna/bfa_ioc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/bna/bfa_ioc.c
b/drivers/net/bna/bfa_ioc.c
index caa45c2185e9a858339b03097d125c2104bf95a7..73493de98de5dcee80b5df4b9104d3da06bbf689 100644
(file)
--- a/
drivers/net/bna/bfa_ioc.c
+++ b/
drivers/net/bna/bfa_ioc.c
@@
-1514,7
+1514,7
@@
bfa_nw_ioc_mbox_isr(struct bfa_ioc *ioc)
return;
}
- if ((mc > BFI_MC_MAX) || (mod->mbhdlr[mc].cbfn == NULL))
+ if ((mc >
=
BFI_MC_MAX) || (mod->mbhdlr[mc].cbfn == NULL))
return;
mod->mbhdlr[mc].cbfn(mod->mbhdlr[mc].cbarg, &m);