]> git.baikalelectronics.ru Git - kernel.git/commit
device: Use overflow helpers for devm_kmalloc()
authorKees Cook <keescook@chromium.org>
Wed, 9 May 2018 05:29:52 +0000 (22:29 -0700)
committerKees Cook <keescook@chromium.org>
Tue, 5 Jun 2018 19:16:51 +0000 (12:16 -0700)
commit4df812ef3b6b6bc9e563c58dfb0c7a1a81839614
tree4d9002abaf08e2ebcda9d313a2d825aeb198d102
parent3402b7d9e86c2462fa87a456eb1a1712deb0029b
device: Use overflow helpers for devm_kmalloc()

Use the overflow helpers both in existing multiplication-using inlines as
well as the addition-overflow case in the core allocation routine.

Signed-off-by: Kees Cook <keescook@chromium.org>
drivers/base/devres.c
include/linux/device.h