Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: cpsw: Properly initialise struct page_pool_params
The cpsw driver didn't properly initialise the struct page_pool_params before calling page_pool_create(), which leads to crashes after the struct has been expanded with new parameters. The second Fixes tag below is where the buggy code was introduced, but because the code was moved around this patch will only apply on top of the commit in the first Fixes tag. Fixes: c5013ac ("net: ethernet: ti: cpsw: move set of common functions in cpsw_priv") Fixes: 9ed4050 ("net: ethernet: ti: cpsw: add XDP support") Reported-by: Colin Foster <[email protected]> Signed-off-by: Toke Høiland-Jørgensen <[email protected]> Tested-by: Colin Foster <[email protected]> Acked-by: Jesper Dangaard Brouer <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information