All of lore.kernel.org
 help / color / mirror / Atom feed
* bna: potential null dereference
@ 2010-09-04 12:59 Jiri Slaby
  2010-09-12 19:02 ` David Miller
  0 siblings, 1 reply; 4+ messages in thread
From: Jiri Slaby @ 2010-09-04 12:59 UTC (permalink / raw)
  To: ddutt; +Cc: rmody, David S. Miller, ML netdev, LKML

Hi,

stanse found a potential null dereference:
bnad_cb_tx_cleanup
  -> struct bnad_unmap_q *unmap_q = tcb->unmap_q;
  -> -- tcb cannot be null now --
  -> if (!tcb || (!tcb->unmap_q))

The thing is I have no idea whether the second parameter of cleanup may
be null (move assignment after the check) or not (remove the check)

Could you fix that?

thanks,
-- 
js

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-09-12 22:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-04 12:59 bna: potential null dereference Jiri Slaby
2010-09-12 19:02 ` David Miller
     [not found]   ` <AANLkTi=cZyLYJac8b8MsyAA4HitCvpD3NaH7nifzHDLw@mail.gmail.com>
2010-09-12 22:38     ` David Miller
2010-09-12 22:41       ` Debashis Dutt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.