The patch titled Subject: zram-add-size-class-equals-check-into-recompression-fix has been added to the -mm mm-unstable branch. Its filename is zram-add-size-class-equals-check-into-recompression-fix.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/zram-add-size-class-equals-check-into-recompression-fix.patch This patch will later appear in the mm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Subject: zram-add-size-class-equals-check-into-recompression-fix Date: Mon Oct 24 04:30:52 PM PDT 2022 fix it for "zsmalloc: turn zspage order into runtime variable". Cc: Alexey Romanov <avromanov@xxxxxxxxxxxxxx> Cc: Minchan Kim <minchan@xxxxxxxxxx> Cc: Nitin Gupta <ngupta@xxxxxxxxxx> Cc: Sergey Senozhatsky <senozhatsky@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/zsmalloc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/mm/zsmalloc.c~zram-add-size-class-equals-check-into-recompression-fix +++ a/mm/zsmalloc.c @@ -1223,7 +1223,9 @@ static bool zspage_full(struct size_clas */ unsigned int zs_get_class_size(struct zs_pool *pool, unsigned int size) { - struct size_class *class = pool->size_class[get_size_class_index(size)]; + struct size_class *class; + + class = pool->size_class[get_size_class_index(pool, size)]; return class->size; } _ Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are ipc-msgc-fix-percpu_counter-use-after-free.patch fs-ext4-superc-remove-unused-deprecated_msg.patch mm-memremap_pages-replace-zone_device_page_init-with-pgmap_request_folios-fix.patch mm-hugetlb-convert-free_huge_page-to-folios-fix.patch vmalloc-add-reviewers-for-vmalloc-code-checkpatch-fixes.patch mm-memremap-introduce-pgmap_request_folio-using-pgmap-offsets-fix.patch mm-gup-remove-foll_migration-fix.patch zram-add-size-class-equals-check-into-recompression-fix.patch powerpc-ptrace-user_regset_copyin_ignore-always-returns-0-fix.patch minmax-sanity-check-constant-bounds-when-clamping-checkpatch-fixes.patch minmax-sanity-check-constant-bounds-when-clamping-checkpatch-fixes-fix.patch proc-report-open-files-as-size-in-stat-for-proc-pid-fd-v3-fix.patch