lkml.org 
[lkml]   [2018]   [Mar]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [2/9] um/drivers/vector_user: Less checks in user_init_raw_fds() after error detection
From
Date
> +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

\
 
 \ /
  Last update: 2018-03-13 08:09    [W:0.076 / U:2.672 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site