summaryrefslogtreecommitdiffstats
path: root/drivers/spmi
diff options
context:
space:
mode:
authorFlorian Fainelli <florian.fainelli@broadcom.com>2024-02-13 09:33:39 -0800
committerPaolo Abeni <pabeni@redhat.com>2024-02-15 13:27:29 +0100
commite5b2e810daf9f2d87fe132eb4d2a85fb08a0db98 (patch)
treebd6f2f7126d2379aa136fe2d8fed06468d1202cf /drivers/spmi
parentd74b23d0c29cb3498642e8673c51e5978ce03496 (diff)
downloadlinux-stable-e5b2e810daf9f2d87fe132eb4d2a85fb08a0db98.tar.gz
linux-stable-e5b2e810daf9f2d87fe132eb4d2a85fb08a0db98.tar.bz2
linux-stable-e5b2e810daf9f2d87fe132eb4d2a85fb08a0db98.zip
net: bcmasp: Handle RX buffer allocation failure
The buffer_pg variable needs to hold an order-5 allocation (32 x PAGE_SIZE) which, under memory pressure may fail to be allocated. Deal with that error condition properly to avoid doing a NULL pointer de-reference in the subsequent call to dma_map_page(). In addition, the err_reclaim_tx error label in bcmasp_netif_init() needs to ensure that the TX NAPI object is properly deleted, otherwise unregister_netdev() will spin forever attempting to test and clear the NAPI_STATE_HASHED bit. Fixes: 490cb412007d ("net: bcmasp: Add support for ASP2.0 Ethernet controller") Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com> Reviewed-by: Justin Chen <justin.chen@broadcom.com> Link: https://lore.kernel.org/r/20240213173339.3438713-1-florian.fainelli@broadcom.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'drivers/spmi')
0 files changed, 0 insertions, 0 deletions