https://github.com/torvalds/linux
Revision 668866b6e8dffa5583d8694f1d8ddd89a8bee745 authored by Markus Elfring on 13 September 2016, 09:32:22 UTC, committed by Michael S. Tsirkin on 30 October 2016, 22:21:46 UTC
Multiplications for the size determination of memory allocations
indicated that array data structures should be processed.
Thus use the corresponding function "kmalloc_array".

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
1 parent 3dae2c6
History
Tip revision: 668866b6e8dffa5583d8694f1d8ddd89a8bee745 authored by Markus Elfring on 13 September 2016, 09:32:22 UTC
virtio_blk: Use kmalloc_array() in init_vq()
Tip revision: 668866b
File Mode Size
Documentation
arch
block
certs
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.cocciconfig -rw-r--r-- 59 bytes
.get_maintainer.ignore -rw-r--r-- 31 bytes
.gitattributes -rw-r--r-- 30 bytes
.gitignore -rw-r--r-- 1.3 KB
.mailmap -rw-r--r-- 7.5 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 96.0 KB
Kbuild -rw-r--r-- 2.8 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 372.7 KB
Makefile -rw-r--r-- 57.3 KB
README -rw-r--r-- 17.9 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top