fs/squashfs/file_direct.c: replace count*size kmalloc by kmalloc_array
authorFabian Frederick <fabf@skynet.be>
Wed, 6 Aug 2014 23:03:50 +0000 (16:03 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 7 Aug 2014 01:01:13 +0000 (18:01 -0700)
commit14694888db2c1f7ba1f2e6172df45813b4db7880
tree72fdad7dc1fc6c795ac6daaa73235cd8752cca3a
parente04aca4a769e16cf4f9b8a4bd3e761711640dc46
fs/squashfs/file_direct.c: replace count*size kmalloc by kmalloc_array

kmalloc_array() manages count*sizeof overflow.

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Cc: Phillip Lougher <phillip@squashfs.org.uk>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/squashfs/file_direct.c