mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
fsl/fman: double free on probe failure
"priv" is allocated with devm_kzalloc() so freeing it here with kfree()
will lead to a double free.
Fixes: 3933961682 ('fsl/fman: Add FMan MAC driver')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e06a03bdf8
commit
9e02d8caaf
1 changed files with 0 additions and 1 deletions
|
|
@ -961,7 +961,6 @@ _return_of_node_put:
|
|||
of_node_put(dev_node);
|
||||
_return_dev_set_drvdata:
|
||||
kfree(priv->fixed_link);
|
||||
kfree(priv);
|
||||
dev_set_drvdata(dev, NULL);
|
||||
_return:
|
||||
return err;
|
||||
|
|
|
|||
Loading…
Reference in a new issue