diff options
author | Pavel Tatashin <pasha.tatashin@oracle.com> | 2017-08-25 22:55:46 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-30 08:21:47 (GMT) |
commit | 9d263321d7a2c1cb5c9b226316640d5066047a7a (patch) | |
tree | 02317497c7e49450ec52469f6e1a07081d0895c3 /kernel/irq | |
parent | b65b6ac52e0f8694aa3a4402d5f766b2bb9e94ef (diff) | |
download | linux-9d263321d7a2c1cb5c9b226316640d5066047a7a.tar.xz |
mm/memblock.c: reversed logic in memblock_discard()
commit 91b540f98872a206ea1c49e4aa6ea8eed0886644 upstream.
In recently introduced memblock_discard() there is a reversed logic bug.
Memory is freed of static array instead of dynamically allocated one.
Link: http://lkml.kernel.org/r/1503511441-95478-2-git-send-email-pasha.tatashin@oracle.com
Fixes: 3010f876500f ("mm: discard memblock data later")
Signed-off-by: Pavel Tatashin <pasha.tatashin@oracle.com>
Reported-by: Woody Suwalski <terraluna977@gmail.com>
Tested-by: Woody Suwalski <terraluna977@gmail.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/irq')
0 files changed, 0 insertions, 0 deletions