net: cpmac: fix in releasing resources
authorVarka Bhadram <varkab@cdac.in>
Thu, 10 Jul 2014 05:35:45 +0000 (11:05 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Jul 2014 07:40:37 +0000 (00:40 -0700)
commit0465be8f4f1ddb251b25da26f1247581bcb98dbf
treef9d862d6f00984e82deb5c8eae412f21422a41db
parent55064efd24d094fc3cb767535a3c5890276ec0bc
net: cpmac: fix in releasing resources

before registering the the net device this code freeing net device
by using the label 'fail'

fixed by introducing an another label 'out'

Signed-off-by: Varka Bhadram <varkab@cdac.in>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpmac.c