diff options
author | Nicholas Troast <ntroast@codeaurora.org> | 2016-04-21 13:58:43 -0700 |
---|---|---|
committer | Jeevan Shriram <jshriram@codeaurora.org> | 2016-04-26 14:38:03 -0700 |
commit | 90d66b6f7175a3c4cfebaf674efeb2a499235740 (patch) | |
tree | a0ae306537eba51ebd2a64e138ea2643519673b3 /mm/page_alloc.c | |
parent | f99837bc86b1f8348bb4ba27558b380a9e471554 (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