]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
parisc: Fix return code of pdc_iodc_print()
authorHelge Deller <deller@gmx.de>
Mon, 19 Dec 2022 19:56:36 +0000 (20:56 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Feb 2023 11:47:15 +0000 (12:47 +0100)
commitcbe4c0b02da10097fbc0fe8fe7e2021f3ebb2fb7
treeb6f16b3ecdc031d0059d4ba2ccbf231db02a5f1c
parent13b42a8938d7bf0e9ba66b468fadc1425ff1e31f
parisc: Fix return code of pdc_iodc_print()

commit 5d1335dabb3c493a3d6d5b233953b6ac7b6c1ff2 upstream.

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

Cc: stable@vger.kernel.org
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/parisc/kernel/firmware.c