[PATCH] tty/serial: atmel: use port->name as name in request_irq()
Sebastian Andrzej Siewior
bigeasy at linutronix.de
Thu Apr 26 08:12:22 PDT 2018
On 2018-04-26 17:06:25 [+0200], To linux-serial at vger.kernel.org wrote:
> It seems not to happen in v4.1.51 but it happens in v4.9 and v4.17-rc2
> so if it broke accidentally it was not recently.
This is what I used to check:
diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c
--- a/drivers/tty/tty_io.c
+++ b/drivers/tty/tty_io.c
@@ -170,7 +170,7 @@ void free_tty_struct(struct tty_struct *tty)
put_device(tty->dev);
kfree(tty->write_buf);
tty->magic = 0xDEADDEAD;
- kfree(tty);
+ strcpy(tty->name, "GONE");
}
static inline struct tty_struct *file_tty(struct file *file)
If this is unknown and a bisect is requested, please let me know.
Sebastian
More information about the linux-arm-kernel
mailing list