* [merged] tools-vm-page_owner_sortc-fix-the-potential-stack-overflow-risk.patch removed from -mm tree
@ 2021-07-06 19:09 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2021-07-06 19:09 UTC (permalink / raw)
To: mm-commits, tangbin, zhangshengju
The patch titled
Subject: tools/vm/page_owner_sort.c: check malloc() return
has been removed from the -mm tree. Its filename was
tools-vm-page_owner_sortc-fix-the-potential-stack-overflow-risk.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Tang Bin <tangbin@cmss.chinamobile.com>
Subject: tools/vm/page_owner_sort.c: check malloc() return
Link: https://lkml.kernel.org/r/20210506131402.10416-1-tangbin@cmss.chinamobile.com
Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
tools/vm/page_owner_sort.c | 4 ++++
1 file changed, 4 insertions(+)
--- a/tools/vm/page_owner_sort.c~tools-vm-page_owner_sortc-fix-the-potential-stack-overflow-risk
+++ a/tools/vm/page_owner_sort.c
@@ -132,6 +132,10 @@ int main(int argc, char **argv)
qsort(list, list_size, sizeof(list[0]), compare_txt);
list2 = malloc(sizeof(*list) * list_size);
+ if (!list2) {
+ printf("Out of memory\n");
+ exit(1);
+ }
printf("culling\n");
_
Patches currently in -mm which might be from tangbin@cmss.chinamobile.com are
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-07-06 19:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-06 19:09 [merged] tools-vm-page_owner_sortc-fix-the-potential-stack-overflow-risk.patch removed from -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.