Re: [PATCH 3/3] net: stmmac: Prefer kcalloc() over kmalloc_array()

2017-03-29 Thread Niklas Cassel
(resending mail without SPAM header) Hi Thierry Sorry that I missed your previous email, for some reason it got stuck in the spam filter. Really good catch. This patch fixes the random RX brokenness for me. Thanks! It would be nice with a Fixes tag though, but lately there's been so many

[PATCH 3/3] net: stmmac: Prefer kcalloc() over kmalloc_array()

2017-03-28 Thread Thierry Reding
From: Thierry Reding Some of the data in the new queue structures seems to not be properly initialized, causing undefined behaviour (networking will work about 2 out of 10 tries). kcalloc() will zero the allocated memory and results in 10 out of 10 successful boots.