aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <[email protected]>2020-06-26 19:42:34 +0200
committerRafael J. Wysocki <[email protected]>2020-06-26 19:42:34 +0200
commitdae68d7fd4930315389117e9da35b763f12238f9 (patch)
tree50beae1a66aef9c5a4d01b293d0d34bf8627271d /scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h
parent48778464bb7d346b47157d21ffde2af6b2d39110 (diff)
PCI: hotplug: ACPI: Fix context refcounting in acpiphp_grab_context()
If context is not NULL in acpiphp_grab_context(), but the is_going_away flag is set for the device's parent, the reference counter of the context needs to be decremented before returning NULL or the context will never be freed, so make that happen. Fixes: edf5bf34d408 ("ACPI / dock: Use callback pointers from devices' ACPI hotplug contexts") Reported-by: Vasily Averin <[email protected]> Cc: 3.15+ <[email protected]> # 3.15+ Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h')
0 files changed, 0 insertions, 0 deletions