Commit 56f2d53d authored by Helge Deller's avatar Helge Deller Committed by zhaoxiaoqiang11
Browse files

parisc: Fix return code of pdc_iodc_print()

stable inclusion
from stable-v5.10.168
commit 2982b473d764b4d02a40c84246a2d576d411427d
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7URR4

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=2982b473d764b4d02a40c84246a2d576d411427d



----------------------------------------------------

commit 5d1335da upstream.

There is an off-by-one if the printed string includes a new-line
char.

Cc: stable@vger.kernel.org
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarzhaoxiaoqiang11 <zhaoxiaoqiang11@jd.com>
parent 2971f222
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment