OSDN Git Service

ethernet: atheros: fix return value check in atl1c_tso_csum()
authorYuanjun Gong <ruc_gongyuanjun@163.com>
Thu, 20 Jul 2023 14:42:08 +0000 (22:42 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Jul 2023 09:39:11 +0000 (10:39 +0100)
commit8d01da0a1db237c44c92859ce3612df7af8d3a53
treed04a1714d6bbbed118a4c09f5f0188832e092d44
parent94d166c5318c6edd1e079df8552233443e909c33
ethernet: atheros: fix return value check in atl1c_tso_csum()

in atl1c_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().

Signed-off-by: Yuanjun Gong <ruc_gongyuanjun@163.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/atheros/atl1c/atl1c_main.c