aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/altera-pr-ip-core-plat.c
diff options
context:
space:
mode:
authorAnel Orazgaliyeva <[email protected]>2021-09-06 18:34:40 +0000
committerRafael J. Wysocki <[email protected]>2021-10-01 20:42:22 +0200
commite5f5a66c9aa9c331da5527c2e3fd9394e7091e01 (patch)
treec6f3fdd763e074cd08bf521d5ec859205be84364 /drivers/fpga/altera-pr-ip-core-plat.c
parentc227233ad64c77e57db738ab0e46439db71822a3 (diff)
cpuidle: Fix kobject memory leaks in error paths
Commit c343bf1ba5ef ("cpuidle: Fix three reference count leaks") fixes the cleanup of kobjects; however, it removes kfree() calls altogether, leading to memory leaks. Fix those and also defer the initialization of dev->kobj_dev until after the error check, so that we do not end up with a dangling pointer. Fixes: c343bf1ba5ef ("cpuidle: Fix three reference count leaks") Signed-off-by: Anel Orazgaliyeva <[email protected]> Suggested-by: Aman Priyadarshi <[email protected]> [ rjw: Subject edits ] Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'drivers/fpga/altera-pr-ip-core-plat.c')
0 files changed, 0 insertions, 0 deletions