tty: n_gsm: Don't ignore write return value in gsmld_output()
authorTony Lindgren <tony@atomide.com>
Thu, 30 Sep 2021 06:06:24 +0000 (09:06 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Oct 2021 12:05:59 +0000 (14:05 +0200)
commit9136c68346d096697935b9840782f7051d5796c5
tree943ad353ec9a40b0915ef59282168e71c29228c0
parent46292622ad73792b44bd9744d269793b209c7630
tty: n_gsm: Don't ignore write return value in gsmld_output()

We currently have gsmld_output() ignore the return value from device
write. This means we will lose packets if device write returns 0 or
an error.

Signed-off-by: Tony Lindgren <tony@atomide.com>
Link: https://lore.kernel.org/r/20210930060624.46523-1-tony@atomide.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_gsm.c