commit | 9199cb7677b388b42e3d95c755090dfc5ab2b11a | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Sat Apr 22 13:46:56 2017 +0300 |
committer | David S. Miller <davem@davemloft.net> | Mon Apr 24 13:58:49 2017 -0400 |
tree | 54b0803b91ac40300508aad3a0fb08c57d69fa9a | |
parent | b40c5f4fde22fb98eff205b3aece05b471c24eed [diff] |
ravb: Double free on error in ravb_start_xmit() If skb_put_padto() fails then it frees the skb. I shifted that code up a bit to make my error handling a little simpler. Fixes: a0d2f20650e8 ("Renesas Ethernet AVB PTP clock driver") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: David S. Miller <davem@davemloft.net>