aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorUlf Hansson <[email protected]>2019-04-18 10:27:55 +0000
committerRafael J. Wysocki <[email protected]>2019-04-25 07:37:28 +0000
commit71b77697af9ef06b559875e4bd8dc3d141807c93 (patch)
tree81af3940f41f6fe170b32c8fbc7a7acd9d0e3490 /drivers/fpga/fpga-mgr.c
parentPM / Domains: remove unnecessary unlikely() (diff)
downloadkernel-71b77697af9ef06b559875e4bd8dc3d141807c93.tar.gz
kernel-71b77697af9ef06b559875e4bd8dc3d141807c93.zip
PM / Domains: Don't kfree() the virtual device in the error path
It's not correct to call kfree(dev) when device_register(dev) has failed. Fix this by calling put_device(dev) instead. Fixes: 3c095f32a92b ("PM / Domains: Add support for multi PM domains per device to genpd") Signed-off-by: Ulf Hansson <[email protected]> Acked-by: Viresh Kumar <[email protected]> Acked-by: Niklas Cassel <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions