HomeFreeBSD

linprocfs: Properly reset error variable for mtab generation

Description

linprocfs: Properly reset error variable for mtab generation

Both functions linprocfs_domtab() and linprocfs_doprocmountinfo() are
logically identical, but the former fails with ECANCELED because error
is not reset after the for loop.

Reviewed by: jrm, fluffy
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D47865

(cherry picked from commit 58c7db14cd71c41f59d80d26d921782c0c27d523)

Details

Provenance
michaeloAuthored on Dec 2 2024, 1:25 PM
Reviewer
jrm
Differential Revision
D47865: linprocfs: Properly reset error variable for mtab generation
Parents
rG9be823d76bd2: isci(4): Fix a typo in a source code comment
Branches
Unknown
Tags
Unknown