kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* standard error codes
@ 2017-03-14  4:33 Tobin C. Harding
  2017-03-14  6:15 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Tobin C. Harding @ 2017-03-14  4:33 UTC (permalink / raw)
  To: kernelnewbies

Driver code in staging/drivers/ks7010 uses the error code -E2BIG as
the error returned if a string argument is larger than destination
buffer. Would this not be better suited to the error code -EOVERFLOW?
Does it matter?

For reference;

#define E2BIG        7  /* Argument list too long */
#define EOVERFLOW   75  /* Value too large for defined data type */

thanks,
Tobin.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-03-14  6:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-14  4:33 standard error codes Tobin C. Harding
2017-03-14  6:15 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).