]> git.karo-electronics.de Git - karo-tx-linux.git/commit
checkpatch: add --strict test for kmalloc/kzalloc with multiply
authorJoe Perches <joe@perches.com>
Sat, 17 May 2014 13:18:35 +0000 (23:18 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Sat, 17 May 2014 13:18:35 +0000 (23:18 +1000)
commite01c68f47399c5be3293b24fb60e169e5712a136
tree162d3255a21b47f2107b3bb7d816003364166801
parentf23a62ffc384497c48b932099f04c9dfdfd36ee7
checkpatch: add --strict test for kmalloc/kzalloc with multiply

Protect against sizeof overflows by preferring kmalloc_array and kcalloc
to kmalloc/kzalloc with a sizeof multiply.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
scripts/checkpatch.pl