Re: [PATCH WITHDRAWN] net: ynl: return actual error code in ynl_exec_dump()

From: Haofeng Li

Date: Tue Sep 30 2025 - 08:39:37 EST


> This is not kernel code the error is always -1, and the details are in errno.

Thank you for the feedback and for pointing that out.

You are absolutely right. I now understand that in the context of this
userspace code, the error handling convention relies on errno for
details when the return value is -1. My patch was attempting to align
the return value with a specific internal error code, which, as you clarified,
is not the established practice here and doesn't provide the intended
benefit in this case.

I appreciate you taking the time to explain this.