Re: [2/9] um/drivers/vector_user: Less checks in user_init_raw_fds() after error detection

From: SF Markus Elfring
Date: Tue Mar 13 2018 - 03:08:40 EST


> +set_error_code:
> + err = -errno;
> + os_close_file(rxfd);

I have taken another look at this change idea.
Now I notice that I should have preserved a sanity check there.

if (rxfd >= 0)
os_close_file(rxfd);


Regards,
Markus