summaryrefslogtreecommitdiff
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorNicholas Troast <ntroast@codeaurora.org>2016-04-21 13:58:43 -0700
committerJeevan Shriram <jshriram@codeaurora.org>2016-04-26 14:38:03 -0700
commit90d66b6f7175a3c4cfebaf674efeb2a499235740 (patch)
treea0ae306537eba51ebd2a64e138ea2643519673b3 /mm/page_alloc.c
parentf99837bc86b1f8348bb4ba27558b380a9e471554 (diff)
gpio: qpnp-pin: Fix crash while freeing memory when probe fails
Memory is allocated for the number of available nodes while memory is freed for the number of all nodes. The memory that is attempted to be freed when the driver probe fails is out of bounds and leads to a crash. Fix the looping condition to free the correct amount of allocated memory. CRs-Fixed: 1006797 Change-Id: I331463e3de8e6ff874995b122aa7415a7da64b31 Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
Diffstat (limited to 'mm/page_alloc.c')
0 files changed, 0 insertions, 0 deletions