]> git.baikalelectronics.ru Git - kernel.git/commit
usercopy: Cast pointer to an integer once
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Sun, 12 Jun 2022 21:32:26 +0000 (22:32 +0100)
committerKees Cook <keescook@chromium.org>
Mon, 13 Jun 2022 16:54:52 +0000 (09:54 -0700)
commit19dee1d49e728beab95efaac3eb4dc6117eb3ed9
treea0dc23adacbc5ab211a2de1232e5be24a577ec70
parent0258dfb4243b2c6df07b9013d45ca5cd49c08da2
usercopy: Cast pointer to an integer once

Get rid of a lot of annoying casts by setting 'addr' once at the top
of the function.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
Tested-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20220612213227.3881769-3-willy@infradead.org
mm/usercopy.c