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
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(-)
2 matches
Mail list logo