Thread (17 messages) 17 messages, 5 authors, 2005-03-05

Re: [PATCH]: r8169: Expose hardware stats via ethtool

From: Jeff Garzik <hidden>
Date: 2005-02-27 22:59:45

Richard Dawe wrote:
quoted
BUG() is a bit exagerated imho.

It seems like a pretty good way of avoiding a buffer overrun to me. 
E.g.: you copy an extra statistic in rtl8169_get_ethtool_stats(), but 
forget to update the stats length. Is it not better to crash early, than 
encounter random behaviour later?

Yeah, that's why the BUG() is present in 8139cp:  force an oops rather 
than continue corrupting memory, if the programmer made an error.

	Jeff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help