mlxsw: Fix use-after-free bug in mlxsw_sx_port_xmit
mlxsw: Fix use-after-free bug in mlxsw_sx_port_xmit

Store the length of the skb before transmitting it and use it for stats
instead of skb->len, since skb might have been freed already.

This issue was discovered using the Kernel Address sanitizer (KASan).

Signed-off-by: Ido Schimmel <1b0ab106fb837225790a9df447125d75029db946@mellanox.com>
Signed-off-by: Jiri Pirko <1b548d10035ae428195c41f5d55eedb1437ccd8a@mellanox.com>
Signed-off-by: David S. Miller <fe08d3c717adf2ae63592e4c9aec6e3e404d8e3e@davemloft.net>

KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs