Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1544096 > unrolled thread

[PATCH] serial: pic32_uart: Fix 'request_irq' and 'free_irq' inconsistancy

Started byChristophe JAILLET <christophe.jaillet@wanadoo.fr>
First post2016-12-18 07:40 +0100
Last post2016-12-18 07:40 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] serial: pic32_uart: Fix 'request_irq' and 'free_irq' inconsistancy Christophe JAILLET <christophe.jaillet@wanadoo.fr> - 2016-12-18 07:40 +0100

#1544096 — [PATCH] serial: pic32_uart: Fix 'request_irq' and 'free_irq' inconsistancy

FromChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Date2016-12-18 07:40 +0100
Subject[PATCH] serial: pic32_uart: Fix 'request_irq' and 'free_irq' inconsistancy
Message-ID<sPDix-41K-1@gated-at.bofh.it>
'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>
---
 drivers/tty/serial/pic32_uart.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/tty/serial/pic32_uart.c b/drivers/tty/serial/pic32_uart.c
index 7f8e99bbcb73..00a33eb859d3 100644
--- a/drivers/tty/serial/pic32_uart.c
+++ b/drivers/tty/serial/pic32_uart.c
@@ -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;
 }
-- 
2.9.3

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web