]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fs/squashfs/file_direct.c: replace count*size kmalloc by kmalloc_array
authorFabian Frederick <fabf@skynet.be>
Thu, 26 Jun 2014 00:42:21 +0000 (10:42 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 26 Jun 2014 00:42:21 +0000 (10:42 +1000)
commit233e7d9d3f2a070977f6f3a02c8c53432a20e6d6
treef1c84c2f31a50dd407f516d4cbb359c39d3e5c63
parent46e9eadd1814eacb01ccbf89a139736de864b20d
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>
fs/squashfs/file_direct.c