On Mon Jan 29 19:08:14 2024 +0000, Jinoh Kang wrote:
`open_object_mapping` might have set an error, which might be returned by this function unmodified.
if ((mapping = open_object_mapping( req->rootdir, &name ))) { reply->handle = alloc_handle( current->process, &mapping->obj, req->access, req->attributes ); release_object( mapping ); return; } clear_error();
I've cleared the error inside the helper and also added a check to make sure we only call it with a root object.