net: lan966x: improve error handle in lan966x_fdma_rx_get_frame()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 26 Aug 2022 15:00:30 +0000 (18:00 +0300)
committerJakub Kicinski <kuba@kernel.org>
Wed, 31 Aug 2022 06:18:17 +0000 (23:18 -0700)
commit13a9d08c296228d18289de60b83792c586e1d073
treeb3c62e52539ae2a42bdee561fe44182a39c16c51
parent642b2122c5df332a6df52dd1f91e552bc4356951
net: lan966x: improve error handle in lan966x_fdma_rx_get_frame()

Don't just print a warning.  Clean up and return an error as well.

Fixes: c8349639324a ("net: lan966x: Add FDMA functionality")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Link: https://lore.kernel.org/r/YwjgDm/SVd5c1tQU@kili
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/microchip/lan966x/lan966x_fdma.c