summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBogdan Purcareata <bogdan.purcareata@nxp.com>2017-09-28 10:58:24 (GMT)
committerXie Xiaobo <xiaobo.xie@nxp.com>2017-12-12 07:32:43 (GMT)
commit818a4151170855edb66a1de95f566b400b64d009 (patch)
tree1023e5b1f3dd591d7dda0bde90db61de8eb54d5d
parenteec4194621936482a102645fd2fd629ea75dc711 (diff)
downloadlinux-818a4151170855edb66a1de95f566b400b64d009.tar.xz
staging: fsl-dpaa2/mac: Remove redundant free
free_netdev (put_device) already handles freeing the private data structure, and KASAN will complain due to a free after free if we explicitly do the same afterwards. Signed-off-by: Bogdan Purcareata <bogdan.purcareata@nxp.com>
-rw-r--r--drivers/staging/fsl-dpaa2/mac/mac.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/fsl-dpaa2/mac/mac.c b/drivers/staging/fsl-dpaa2/mac/mac.c
index 3016963..a3b458a 100644
--- a/drivers/staging/fsl-dpaa2/mac/mac.c
+++ b/drivers/staging/fsl-dpaa2/mac/mac.c
@@ -636,7 +636,6 @@ static int dpaa2_mac_remove(struct fsl_mc_device *mc_dev)
free_netdev(priv->netdev);
dev_set_drvdata(dev, NULL);
- kfree(priv);
return 0;
}