]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
fs/pstore/ram_core.c: replace count*size kmalloc by kmalloc_array
authorFabian Frederick <fabf@skynet.be>
Fri, 8 Aug 2014 21:22:35 +0000 (14:22 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 8 Aug 2014 22:57:25 +0000 (15:57 -0700)
commitb8f52d89c0c6daec8a9f9e00c1c9afb680cbcf5e
tree2d90ae1c0bb2f39197e923787c46499f3d59109c
parent340f365dd9d74d0ca55089481b9c665955db0aaa
fs/pstore/ram_core.c: replace count*size kmalloc by kmalloc_array

kmalloc_array manages count*sizeof overflow.

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Cc: Anton Vorontsov <anton@enomsg.org>
Cc: Colin Cross <ccross@android.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/pstore/ram_core.c