summaryrefslogtreecommitdiff
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-06-05 20:31:29 (GMT)
committerDavid S. Miller <davem@davemloft.net>2012-06-07 20:15:09 (GMT)
commitc3001b773bb63afd403bae37febf3f09826912cb (patch)
tree575e8c9f53d88ec6ad465f4b0d23fe67e76fa7dc /drivers/hwmon
parent69927fccd96b15bd228bb82d356a7a2a0cfaeefb (diff)
downloadlinux-fsl-qoriq-c3001b773bb63afd403bae37febf3f09826912cb.tar.xz
net/ethernet: ks8851_mll unregister_netdev() before freeing
We added another error condition here, but if we were to hit it then we need to unregister_netdev() before doing the free_netdev(). Otherwise we would hit the BUG_ON() in free_netdev(): BUG_ON(dev->reg_state != NETREG_UNREGISTERED); Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Tested-by: Raffaele Recalcati <raffaele.recalcati@bticino.it> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/hwmon')
0 files changed, 0 insertions, 0 deletions