]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
net: tc35815: move free after the dereference
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 21 Apr 2017 10:49:37 +0000 (13:49 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Apr 2017 16:38:03 +0000 (12:38 -0400)
commit11faa7b0359aaf7efd406b7a6a077fda2b037d8e
tree2fc20f5dad734fd57c99220811882b48741ed824
parent1510d728639e183b60bd1285b09a49c393923ba5
net: tc35815: move free after the dereference

We dereference "skb" to get "skb->len" so we should probably do that
step before freeing the skb.

Fixes: eea221ce4880 ("tc35815 driver update (take 2)")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/toshiba/tc35815.c