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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 May 2020 06:15:33 +0000 (08:15 +0200)
commitf0d331d1ababe75cdd3690fe1c99f6cc6aded099
tree904ebe7b159bf2637321b173d32bce978ea5174b
parentbf3c068c5c074ef417633c350e48109fe2578dfa
net: moxa: Fix a potential double 'free_irq()'

[ Upstream commit ee8d2267f0e39a1bfd95532da3a6405004114b27 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/moxa/moxart_ether.c