diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2017-04-09 15:06:00 +0200 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2017-05-01 22:21:05 -0700 |
commit | f1725110324d97d841609fd0b3536eb3ead77086 (patch) | |
tree | dd8838a43c9eb4ee43d58c1762f35d59fce81235 /include | |
parent | 056e8924a072d22007275dfb8b247bb814765b67 (diff) |
iscsi-target: Use kcalloc() in iscsit_allocate_iovecs()
* A multiplication for the size determination of a memory allocation
indicated that an array data structure should be processed.
Thus use the corresponding function "kcalloc".
This issue was detected by using the Coccinelle software.
* Replace the specification of a data structure by a pointer dereference
to make the corresponding size determination a bit safer according to
the Linux coding style convention.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions