Skip to content

Commit

Permalink
net: bcmgenet: Use correct dev_id for free_irq
Browse files Browse the repository at this point in the history
bcmgenet_open()'s error path call free_irq() with a dev_id argument
different from the one we used to call request_irq() with, this will
make us trip over the warning in kernel/irq/manage.c:__free_irq()

Fixes: 1c1008c ("net: bcmgenet: add main driver file")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Florian Fainelli authored and David S. Miller committed Jul 21, 2015
1 parent 6ac3ce8 commit 978ffac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/broadcom/genet/bcmgenet.c
Original file line number Diff line number Diff line change
Expand Up @@ -2695,7 +2695,7 @@ static int bcmgenet_open(struct net_device *dev)
return 0;

err_irq0:
free_irq(priv->irq0, dev);
free_irq(priv->irq0, priv);
err_fini_dma:
bcmgenet_fini_dma(priv);
err_clk_disable:
Expand Down

0 comments on commit 978ffac

Please sign in to comment.