OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ca7f87
)
bna: Check for NULL before deref in bnad_cb_tx_cleanup
author
David S. Miller
<davem@davemloft.net>
Sun, 12 Sep 2010 19:06:00 +0000
(12:06 -0700)
committer
David S. Miller
<davem@davemloft.net>
Sun, 12 Sep 2010 19:06:00 +0000
(12:06 -0700)
Reported-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bna/bnad.c
patch
|
blob
|
history
diff --git
a/drivers/net/bna/bnad.c
b/drivers/net/bna/bnad.c
index
8158fb9
..
e380c0e
100644
(file)
--- a/
drivers/net/bna/bnad.c
+++ b/
drivers/net/bna/bnad.c
@@
-867,11
+867,12
@@
bnad_cb_tx_resume(struct bnad *bnad, struct bna_tcb *tcb)
static void
bnad_cb_tx_cleanup(struct bnad *bnad, struct bna_tcb *tcb)
{
- struct bnad_unmap_q *unmap_q
= tcb->unmap_q
;
+ struct bnad_unmap_q *unmap_q;
if (!tcb || (!tcb->unmap_q))
return;
+ unmap_q = tcb->unmap_q;
if (!unmap_q->unmap_array)
return;