summaryrefslogtreecommitdiff
path: root/drivers/net/phy/dp83640_reg.h
diff options
context:
space:
mode:
authorNavid Emamdoost <navid.emamdoost@gmail.com>2019-09-18 01:47:12 +0300
committerStefan Schmidt <stefan@datenfreihafen.org>2019-09-27 22:57:42 +0300
commit6402939ec86eaf226c8b8ae00ed983936b164908 (patch)
tree7803cfd97b141bda44913009e5342a8d29547033 /drivers/net/phy/dp83640_reg.h
parent21a045e430e56725628f361dede8a882e92469b9 (diff)
downloadlinux-6402939ec86eaf226c8b8ae00ed983936b164908.tar.xz
ieee802154: ca8210: prevent memory leak
In ca8210_probe the allocated pdata needs to be assigned to spi_device->dev.platform_data before calling ca8210_get_platform_data. Othrwise when ca8210_get_platform_data fails pdata cannot be released. Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Link: https://lore.kernel.org/r/20190917224713.26371-1-navid.emamdoost@gmail.com Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Diffstat (limited to 'drivers/net/phy/dp83640_reg.h')
0 files changed, 0 insertions, 0 deletions