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, 14 Jun 2022 16:36:07 +0000 (18:36 +0200)
commit80dfe1798aa01930afc4478ac602c93209717ed3
treeee9021e0c02412422c8599e7465bf0e984c25848
parent029983ea88e59f4c7dc0d56ade2b16d6b869bf94
tty: n_gsm: Don't ignore write return value in gsmld_output()

[ Upstream commit 9136c68346d096697935b9840782f7051d5796c5 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/tty/n_gsm.c