From: Geert Uytterhoeven Date: Wed, 6 Aug 2008 20:19:39 +0000 (+0200) Subject: m68k/amiserial: fix fallout of tty break handling rework X-Git-Tag: firefly_0821_release~18383 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=970a8a513c30a1c3e8995609a153658a34bc02bf;p=firefly-linux-kernel-4.4.55.git m68k/amiserial: fix fallout of tty break handling rework commit 9e98966c7bb94355689478bc84cc3e0c190f977e (tty: rework break handling) forgot to update one exit point of rs_break() in the Amiga serial driver. Signed-off-by: Geert Uytterhoeven Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/amiserial.c b/drivers/char/amiserial.c index 3530ff417a51..6e763e3f5a81 100644 --- a/drivers/char/amiserial.c +++ b/drivers/char/amiserial.c @@ -1254,7 +1254,7 @@ static int rs_break(struct tty_struct *tty, int break_state) unsigned long flags; if (serial_paranoia_check(info, tty->name, "rs_break")) - return; + return -EINVAL; local_irq_save(flags); if (break_state == -1)