net: dm9051: Fix use after free in dm9051_loop_tx()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 21 Feb 2022 10:54:40 +0000 (13:54 +0300)
committerJakub Kicinski <kuba@kernel.org>
Tue, 22 Feb 2022 04:55:16 +0000 (20:55 -0800)
commitb6553c71813f57b1bfa775af120169c549f7f090
treeb3553f49941d250844c944b17e456663cba9da6f
parenta0b92e0514bb3c5e57c33fd720724a629f67e042
net: dm9051: Fix use after free in dm9051_loop_tx()

This code dereferences "skb" after calling dev_kfree_skb().

Fixes: 2dc95a4d30ed ("net: Add dm9051 driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20220221105440.GA10045@kili
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/davicom/dm9051.c