]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: ax88796: don't call free_irq without request_irq first
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 25 May 2017 20:54:53 +0000 (22:54 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 May 2017 18:55:38 +0000 (14:55 -0400)
commit0bb7ee738c9ccf6690abe5b3a761c3bdd59c7c17
treec2d83c405f192cfd5b792427fb3f5b4366f110da
parentf11dd6e1180e4ca2d3934bd5e72fcdac43fac4b0
net: ethernet: ax88796: don't call free_irq without request_irq first

The function ax_init_dev (which is called only from the driver's .probe
function) calls free_irq in the error path without having requested the
irq in the first place. So drop the free_irq call in the error path.

Fixes: 800988d5e10c ("AX88796 network driver")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/8390/ax88796.c