sch_atm: Fix potential NULL deref.
authorDavid S. Miller <davem@davemloft.net>
Sun, 12 Sep 2010 18:56:44 +0000 (11:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 12 Sep 2010 18:56:44 +0000 (11:56 -0700)
commita505b3b30fc69904f858822a2aa95990a4bf7958
tree4ea708f794d8cb91f77d42e32fce5324902cc274
parent053d8f6622701f849fda2ca2c9ae596c13599ba9
sch_atm: Fix potential NULL deref.

The list_head conversion unearther an unnecessary flow
check.  Since flow is always NULL here we don't need to
see if a matching flow exists already.

Reported-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_atm.c