[ATM]: Fix dereference of uninitialized pointer in zatm
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 2 Sep 2005 19:18:03 +0000 (12:18 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Sep 2005 19:18:03 +0000 (12:18 -0700)
commitd70063c4634af060a5387337b7632f6334ca3458
treeda02edf31bd8ae1f4ff5fa62ca664166d4d4a4d8
parent6475be16fd9b3c6746ca4d18959246b13c669ea8
[ATM]: Fix dereference of uninitialized pointer in zatm

Fixing breakage from [NET]: Kill skb->list - original was
assign vcc
do a bunch of stuff using ZATM_VCC(vcc)->pool as common subexpression
Now we do
int pos = ZATM_VCC(vcc)->pool;
assign vcc
do a bunch of stuff
even though vcc is not even initialized when we enter that block...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/atm/zatm.c