]> git.baikalelectronics.ru Git - kernel.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>
Thu, 9 Feb 2023 10:28:20 +0000 (11:28 +0100)
commit1ee03809caa4123043acbc8a77f11f9298cbd1b9
tree529b93fd62af2a2eebe18c3094ecbd846a81a9d6
parent3bb5b88eca299cf607db7d89093eb92a646bede5
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