[PATCH V2] fs/squashfs/file_direct.c: replace count*size kmalloc by kmalloc_array

2014-06-16 Thread Fabian Frederick
kmalloc_array manages count*sizeof overflow. Cc: Phillip Lougher Cc: Andrew Morton Cc: Joe Perches Signed-off-by: Fabian Frederick --- V2: use kmalloc_array instead of kcalloc (suggested by Joe Perches). fs/squashfs/file_direct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH V2] fs/squashfs/file_direct.c: replace count*size kmalloc by kmalloc_array

2014-06-16 Thread Fabian Frederick
kmalloc_array manages count*sizeof overflow. Cc: Phillip Lougher phil...@squashfs.org.uk Cc: Andrew Morton a...@linux-foundation.org Cc: Joe Perches j...@perches.com Signed-off-by: Fabian Frederick f...@skynet.be --- V2: use kmalloc_array instead of kcalloc (suggested by Joe Perches).