aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/display/intel_dp_mst.c
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <[email protected]>2024-09-17 15:42:46 +0200
committerRafael J. Wysocki <[email protected]>2024-10-01 20:43:44 +0200
commitc0f02536fffbbec71aced36d52a765f8c4493dc2 (patch)
treeb0096f7280ab03428a790605d09af3cd94b5e4f5 /drivers/gpu/drm/i915/display/intel_dp_mst.c
parent8b4865cd904650cbed7f2407e653934c621b8127 (diff)
cpufreq: Avoid a bad reference count on CPU node
In the parse_perf_domain function, if the call to of_parse_phandle_with_args returns an error, then the reference to the CPU device node that was acquired at the start of the function would not be properly decremented. Address this by declaring the variable with the __free(device_node) cleanup attribute. Signed-off-by: Miquel Sabaté Solà <[email protected]> Acked-by: Viresh Kumar <[email protected]> Link: https://patch.msgid.link/[email protected] Cc: All applicable <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_dp_mst.c')
0 files changed, 0 insertions, 0 deletions