serial: pic32_uart: Fix 'request_irq' and 'free_irq' inconsistancy
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 18 Dec 2016 06:38:11 +0000 (07:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Jan 2017 10:51:24 +0000 (11:51 +0100)
'request_irq' and 'free_irq' should have the same 'dev_id'.
Here one uses 'port', and the other one uses 'sport'.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/pic32_uart.c

index 7f8e99bbcb739832824682ebe7321c7c653a22da..00a33eb859d383c4bd6ba6e6fefaf51637b5701a 100644 (file)
@@ -495,13 +495,13 @@ static int pic32_uart_startup(struct uart_port *port)
 
 out_t:
        kfree(sport->irq_tx_name);
-       free_irq(sport->irq_tx, sport);
+       free_irq(sport->irq_tx, port);
 out_r:
        kfree(sport->irq_rx_name);
-       free_irq(sport->irq_rx, sport);
+       free_irq(sport->irq_rx, port);
 out_f:
        kfree(sport->irq_fault_name);
-       free_irq(sport->irq_fault, sport);
+       free_irq(sport->irq_fault, port);
 out_done:
        return ret;
 }