Re: [PATCH 1/1] FS/JBD:replace count*size kmalloc by kmalloc_array

2014-06-25 Thread Theodore Ts'o
On Wed, Jun 25, 2014 at 08:49:06PM +0200, Fabian Frederick wrote: > kmalloc_array manages count*sizeof overflow. Except in these call sites, overflow is impossible. kmalloc_array() is useful when count is coming from an unvalidated source. But in this case, the count is either a fixed, hard-code

[PATCH 1/1] FS/JBD:replace count*size kmalloc by kmalloc_array

2014-06-25 Thread Fabian Frederick
kmalloc_array manages count*sizeof overflow. This patch also fixes checkpatch warnings: ERROR: "(foo*)" should be "(foo *)" Cc: Andrew Morton Cc: Jan Kara Signed-off-by: Fabian Frederick --- fs/jbd/journal.c | 6 -- fs/jbd/revoke.c | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-)