]> git.baikalelectronics.ru Git - kernel.git/commit
net: cpsw: Properly initialise struct page_pool_params
authorToke Høiland-Jørgensen <toke@redhat.com>
Mon, 24 Jan 2022 14:35:29 +0000 (15:35 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Jan 2022 11:06:33 +0000 (11:06 +0000)
commit81e076720e49962747d93d43c8479e95bfe79c3a
treeba7641fd06f929cbb1b51d0cca5f134f37ef5bc0
parent6705cfd115c121b9ba19d10acdbc43c83d578f60
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: edc9c870e86c ("net: ethernet: ti: cpsw: move set of common functions in cpsw_priv")
Fixes: 6decf1a5b203 ("net: ethernet: ti: cpsw: add XDP support")
Reported-by: Colin Foster <colin.foster@in-advantage.com>
Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Tested-by: Colin Foster <colin.foster@in-advantage.com>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw_priv.c