# Re: \[PATCH v6 4/9\] pseries/plpks: fix double conversion of write and remove flush errors

- From: sashiko-bot@kernel.org
- Date: 2026-11-05 14:52:09 
- List: linux-security-module
- Page: https://ratatoskr.run/linux-security-module/2026/11/17871302
- Thread: https://ratatoskr.run/linux-security-module/2026/11/17871225/t.md

```text
> plpks_confirm_object_flushed() returns zero or a negative Linux errno.
> However, plpks_write_var() and plpks_remove_var() pass this return value
> through pseries_status_to_err(), which treats it as a raw hypervisor status
> and converts it again.
> 
> Convert only errors returned by the write and remove HCALLs, and propagate
> errors from plpks_confirm_object_flushed() unchanged.
> 
> Fixes: 2454a7af0f2a ("powerpc/pseries: define driver for Platform KeyStore")
> Cc: <redacted> # 6.0
> Signed-off-by: Srish Srinivasan <ssrish@linux.ibm.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261105144320.357260-1-ssrish@linux.ibm.com?part=4

```
