Skip to content
Commit c63003e3 authored by Toke Høiland-Jørgensen's avatar Toke Høiland-Jørgensen Committed by David S. Miller
Browse files

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: c5013ac1 ("net: ethernet: ti: cpsw: move set of common functions in cpsw_priv")
Fixes: 9ed4050c ("net: ethernet: ti: cpsw: add XDP support")
Reported-by: default avatarColin Foster <colin.foster@in-advantage.com>
Signed-off-by: default avatarToke Høiland-Jørgensen <toke@redhat.com>
Tested-by: default avatarColin Foster <colin.foster@in-advantage.com>
Acked-by: default avatarJesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 29eb3154
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment