[media] pvrusb2-io: Use kmalloc_array() in pvr2_stream_buffer_count()
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 22 Dec 2016 18:26:52 +0000 (16:26 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 31 Jan 2017 10:02:40 +0000 (08:02 -0200)
commit16eddbe352e78829111315889b697037d09b26a1
tree51250f77b1f0eb2154ad3fb62f01c8137d6d8551
parent56271bc8da2323b6205b3a978294f86f100db49a
[media] pvrusb2-io: Use kmalloc_array() in pvr2_stream_buffer_count()

A multiplication for the size determination of a memory allocation
indicated that an array data structure 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: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/pvrusb2/pvrusb2-io.c