cpmac: use after free
commit48a29516e8b0b8cd59f5afec90a14f49dd9cf967
authorDan Carpenter <error27@gmail.com>
Tue, 2 Mar 2010 22:46:10 +0000 (2 22:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 Mar 2010 09:04:37 +0000 (3 01:04 -0800)
tree52d72a624421b3372c1a2e8a4143d2a246d364d5
parent87c1e12b5eeb7b30b4b41291bef8e0b41fc3dde9
cpmac: use after free

The original code dereferenced "cpmac_mii" after calling
"mdiobus_free(cpmac_mii);"

Signed-off-by: Dan Carpenter <error27@gmail.com>
Reviewed-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cpmac.c