diff options
author | Pavel Tatashin <pasha.tatashin@oracle.com> | 2017-08-26 01:55:46 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-08-26 02:12:46 +0300 |
commit | 91b540f98872a206ea1c49e4aa6ea8eed0886644 (patch) | |
tree | f9364d7d1c9c47123ca73d1910b76322482da9a4 /fs | |
parent | 2b7e8665b4ff51c034c55df3cff76518d1a9ee3a (diff) | |
download | linux-91b540f98872a206ea1c49e4aa6ea8eed0886644.tar.xz |
mm/memblock.c: reversed logic in memblock_discard()
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>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions