Re: stmmac smatch error rx_queue_routing

2018-01-22 Thread Niklas Cassel
On Mon, Jan 22, 2018 at 04:55:10PM +, Jose Abreu wrote: > Hi Niklas, Hello Jose, and thanks for your reply. > > Looking at the code raises some questions: > > > > > > static void dwmac4_tx_queue_routing(struct mac_device_info *hw, > > u8 packet, u32 queue)

Re: stmmac smatch error rx_queue_routing

2018-01-22 Thread Jose Abreu
Hi Niklas, On 22-01-2018 16:43, Niklas Cassel wrote: > Hello stmmac peeps, > > I found this smatch error: > > drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c:132 > dwmac4_tx_queue_routing() error: > buffer overflow 'route_possibilities' 5 <= 254 > drivers/net/ethernet/stmicro/stmmac/dwmac4_co

stmmac smatch error rx_queue_routing

2018-01-22 Thread Niklas Cassel
Hello stmmac peeps, I found this smatch error: drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c:132 dwmac4_tx_queue_routing() error: buffer overflow 'route_possibilities' 5 <= 254 drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c:133 dwmac4_tx_queue_routing() error: buffer overflow 'route_