]> git.baikalelectronics.ru Git - kernel.git/commit
ubifs: Use kmalloc_array()
authorRichard Weinberger <richard@nod.at>
Mon, 2 Jul 2018 21:47:13 +0000 (23:47 +0200)
committerRichard Weinberger <richard@nod.at>
Tue, 14 Aug 2018 22:25:20 +0000 (00:25 +0200)
commitd329a0a51740d034fc288037899800c1837862e8
treefafbd048d6f7c1d50bbe1c686f0ae1751c21373f
parent0d3aa7444a27493b439368c7568b81f72bbf6073
ubifs: Use kmalloc_array()

Since commit a47a0704ed7a ("treewide: kmalloc() -> kmalloc_array()")
we use kmalloc_array() for kmalloc() that computes the length with
a multiplication.

Cc: Kees Cook <keescook@chromium.org>
Suggested-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Richard Weinberger <richard@nod.at>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/journal.c