Thread (21 messages) flat view 21 messages, 5 authors, 2021-06-15

Re: [PATCH net-next 5/8] ice: register 1588 PTP clock device object for E810 devices

From: Richard Cochran <richardcochran@gmail.com>
Date: 2021-06-15 05:09:02

On Mon, Jun 14, 2021 at 11:50:43AM -0700, Jakub Kicinski wrote:
tx->freq is a long, and the conversion to ppb can overflow the s32 type.
E.g. 281474976645 will become -2 AFAICT. I hacked up phc_ctl to not do
range checking and kernel happily accepted that value. Shall we do this?
Yes, you are right.  The range check has a bug, and your fix is good.

Thanks,
Richard

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