]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
kasan: move is_kmalloc check out of save_alloc_info
authorAndrey Konovalov <andreyknvl@google.com>
Mon, 5 Sep 2022 21:05:18 +0000 (23:05 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 3 Oct 2022 21:02:56 +0000 (14:02 -0700)
commit196894a6e20273d78479bdf76eec3a741e72d31c
tree529eee4f9758596418e8d1d585ca9cbb63344b95
parentc249f9af85ee006976c0fae584daf947cc959931
kasan: move is_kmalloc check out of save_alloc_info

Move kasan_info.is_kmalloc check out of save_alloc_info().

This is a preparatory change that simplifies the following patches in this
series.

Link: https://lkml.kernel.org/r/df89f1915b788f9a10319905af6d0202a3b30c30.1662411799.git.andreyknvl@google.com
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Reviewed-by: Marco Elver <elver@google.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Andrey Ryabinin <ryabinin.a.a@gmail.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Evgenii Stepanov <eugenis@google.com>
Cc: Peter Collingbourne <pcc@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/kasan/common.c