Re: [PATCH net] net: sched: taprio: Avoid division by zero on invalid link speed

2019-10-01 Thread David Miller
From: Vladimir Oltean Date: Sun, 29 Sep 2019 02:37:22 +0300 > The check in taprio_set_picos_per_byte is currently not robust enough > and will trigger this division by zero, due to e.g. PHYLINK not setting > kset->base.speed when there is no PHY connected: ... > Russell King points out that the

Re: [PATCH net] net: sched: taprio: Avoid division by zero on invalid link speed

2019-09-30 Thread Vinicius Costa Gomes
Vladimir Oltean writes: > The check in taprio_set_picos_per_byte is currently not robust enough > and will trigger this division by zero, due to e.g. PHYLINK not setting > kset->base.speed when there is no PHY connected: > > [ 27.109992] Division by zero in kernel. > [ 27.113842] CPU: 1 PID:

[PATCH net] net: sched: taprio: Avoid division by zero on invalid link speed

2019-09-28 Thread Vladimir Oltean
The check in taprio_set_picos_per_byte is currently not robust enough and will trigger this division by zero, due to e.g. PHYLINK not setting kset->base.speed when there is no PHY connected: [ 27.109992] Division by zero in kernel. [ 27.113842] CPU: 1 PID: 198 Comm: tc Not tainted 5.3.0-rc5-0