diff options
| author | Navid Emamdoost <navid.emamdoost@gmail.com> | 2019-09-17 17:47:12 -0500 |
|---|---|---|
| committer | Stefan Schmidt <stefan@datenfreihafen.org> | 2019-09-27 21:57:42 +0200 |
| commit | 6402939ec86eaf226c8b8ae00ed983936b164908 (patch) | |
| tree | 7803cfd97b141bda44913009e5342a8d29547033 /scripts/gcc-plugins/randomize_layout_plugin.c | |
| parent | 21a045e430e56725628f361dede8a882e92469b9 (diff) | |
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 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions
