aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2015-12-01 17:39:31 +0000
committerRafael J. Wysocki <[email protected]>2015-12-04 00:21:17 +0000
commit265e2cf672aaa9421e7012b4aa30c0ed80f1a447 (patch)
treee1c7d12d6cf4c3ee213f4263f1eabd01b5696d81 /drivers/fpga/fpga-mgr.c
parentPM / Domains: Validate cases of a non-bound driver in genpd governor (diff)
downloadkernel-265e2cf672aaa9421e7012b4aa30c0ed80f1a447.tar.gz
kernel-265e2cf672aaa9421e7012b4aa30c0ed80f1a447.zip
PM / Domains: Fix bad of_node_put() in failure paths of genpd_dev_pm_attach()
It looks like these meant to be unreffing the of_parse_phandle_with_args() node, since the error paths above it don't do of_node_put. That function returns a new ref in pd_args.np, though, not a new ref on dev->of_node. Also, it would have leaked the ref in the success case. Fixes "ERROR: Bad of_node_put()" on bcm2835 in the -EPROBE_DEFER case. Fixes: aa42240ab254 (PM / Domains: Add generic OF-based PM domain look-up) Signed-off-by: Eric Anholt <[email protected]> Acked-by: Ulf Hansson <[email protected]> Acked-by: Kevin Hilman <[email protected]> Cc: 3.18+ <[email protected]> # 3.18+ Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions