]> git.baikalelectronics.ru Git - kernel.git/commit
target: Use kmalloc_array() in transport_kmap_data_sg()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sun, 9 Apr 2017 19:07:14 +0000 (21:07 +0200)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 2 May 2017 05:21:33 +0000 (22:21 -0700)
commita7f72378582bc6c96fcea8f9d9d99d63743871fc
treeaa9066e34bbb6fcdf7dc06ec8085039ec4ca9805
parent7cdd60d30d439817df8ef44b7476924c4b56b4e7
target: Use kmalloc_array() in transport_kmap_data_sg()

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: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_transport.c