login
Header Space

 
 

Re: [PATCH][CAN]: Fix copy_from_user() results interpretation.

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: David Miller <davem@...>
Cc: <oliver.hartkopp@...>, <xemul@...>, <socketcan-core@...>, <netdev@...>, <urs.thuermann@...>
Date: Saturday, April 26, 2008 - 2:35 am

David Miller wrote:

Well, really,

   if (func(x))
        return -EFAULT;

instead of

   err = func(x);
   if (err)
	return -EFAULT;

is more straight forward and less confusing and I do not understand, why
it should be harder to review.

Wolfgang.

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH][CAN]: Fix copy_from_user() results interpretation., Pavel Emelyanov, (Fri Apr 25, 8:42 am)
Re: [PATCH][CAN]: Fix copy_from_user() results interpretation., Wolfgang Grandegger, (Sat Apr 26, 2:19 am)
Re: [PATCH][CAN]: Fix copy_from_user() results interpretation., Wolfgang Grandegger, (Sat Apr 26, 9:04 am)
Re: [PATCH][CAN]: Fix copy_from_user() results interpretation., Wolfgang Grandegger, (Sat Apr 26, 2:35 am)
speck-geostationary