Commit 84a0d243 authored by Patrick Daly's avatar Patrick Daly Committed by Treehugger Robot
Browse files

ANDROID: mm/memory_hotplug: Fix error path handling



Correct a resource leak if arch_add_memory() returns failure.

Bug: 243477359
Change-Id: I1dce82a18c2242d7b6fd9fb1fe3a8b2ba67853de
Fixes: 417ac617 ("ANDROID: mm/memory_hotplug: implement {add/remove}_memory_subsection")
Signed-off-by: default avatarPatrick Daly <quic_pdaly@quicinc.com>
Signed-off-by: default avatarChris Goldsworthy <quic_cgoldswo@quicinc.com>
parent 98e5fb34
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment