parisc: Fix locking in pdc_iodc_print() firmware call
authorHelge Deller <deller@gmx.de>
Sat, 26 Nov 2022 20:29:31 +0000 (21:29 +0100)
committerHelge Deller <deller@gmx.de>
Sun, 18 Dec 2022 21:18:49 +0000 (22:18 +0100)
commit7236aae5f81f3efbd93d0601e74fc05994bc2580
treeb4e888ee45eb64822698dc212f21810bdc07c89f
parentfe94cb1a614d2df2764d49ac959d8b7e4cb98e15
parisc: Fix locking in pdc_iodc_print() firmware call

Utilize pdc_lock spinlock to protect parallel modifications of the
iodc_dbuf[] buffer, check length to prevent buffer overflow of
iodc_dbuf[], drop the iodc_retbuf[] buffer and fix some wrong
indentings.

Signed-off-by: Helge Deller <deller@gmx.de>
Cc: <stable@vger.kernel.org> # 6.0+
arch/parisc/kernel/firmware.c