]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commiteffb18c1bd65ddffee664850d1f4d9aa72d28874
tree51250f77b1f0eb2154ad3fb62f01c8137d6d8551
parentab471648c18ee53616270dd782d86c2a268d1a3f
[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