Details
-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
None
-
3
-
9223372036854775807
Description
We seem to be having this sort of code there:
if (lso == NULL) { struct lu_attr *attr = &info->lti_la; rc = dt_attr_get(env, parent, attr); if (rc != 0) { rc = PTR_ERR(lso); goto next; }
Now note that lso is already NULL - meaning we reset nonzero rc into zero in quite a roundabout way.
Are you sure this is what was desired? I think we should just reuse the rc with the error instead?
Patch has landed for 2.8.