OSDN Git Service

ethernet: atheros: fix return value check in atl1e_tso_csum()
authorYuanjun Gong <ruc_gongyuanjun@163.com>
Thu, 20 Jul 2023 14:42:19 +0000 (22:42 +0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 24 Jul 2023 22:43:02 +0000 (15:43 -0700)
commit69a184f7a372aac588babfb0bd681aaed9779f5b
tree9ae3a308227926a1bae0c2c490df57fb232d06fc
parented96824b71ed67664390890441b229423a25317f
ethernet: atheros: fix return value check in atl1e_tso_csum()

in atl1e_tso_csum, it should check the return value of pskb_trim(),
and return an error code if an unexpected value is returned
by pskb_trim().

Fixes: a6a5325239c2 ("atl1e: Atheros L1E Gigabit Ethernet driver")
Signed-off-by: Yuanjun Gong <ruc_gongyuanjun@163.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Link: https://lore.kernel.org/r/20230720144219.39285-1-ruc_gongyuanjun@163.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/atheros/atl1e/atl1e_main.c