staging: comedi: use kmalloc_array instead of kmalloc
authorGeliang Tang <geliangtang@163.com>
Tue, 10 Nov 2015 14:41:34 +0000 (22:41 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Dec 2015 23:55:57 +0000 (15:55 -0800)
commit04226e40592c4b27cc2250105b4505901d467102
tree3e2b9a979583908992b9192c7614de1afcdaaa8e
parent6e411751f00faf00379f6aa94701ab360b068cff
staging: comedi: use kmalloc_array instead of kmalloc

Use kmalloc_array instead of kmalloc to allocate memory for an array.

Signed-off-by: Geliang Tang <geliangtang@163.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/amplc_pci224.c
drivers/staging/comedi/drivers/ni_670x.c