net: moxa: Fix a potential double 'free_irq()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 26 Apr 2020 20:59:21 +0000 (22:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 May 2020 03:23:49 +0000 (20:23 -0700)
commitee8d2267f0e39a1bfd95532da3a6405004114b27
tree726a218a5c59fb3b2109012c4bfe193576c4f770
parentab046a5d4be4c90a3952a0eae75617b49c0cb01b
net: moxa: Fix a potential double 'free_irq()'

Should an irq requested with 'devm_request_irq' be released explicitly,
it should be done by 'devm_free_irq()', not 'free_irq()'.

Fixes: 6c821bd9edc9 ("net: Add MOXA ART SoCs ethernet driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/moxa/moxart_ether.c