OSDN Git Service

scsi: target/core: Use kvcalloc() instead of open-coding it
authorBart Van Assche <bvanassche@acm.org>
Tue, 27 Nov 2018 23:51:56 +0000 (15:51 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 8 Dec 2018 02:20:07 +0000 (21:20 -0500)
commit5d6cd9fe318b4a6ed2ecee83306db3f543a4f9c4
tree8a46441073a3bff0f4aea659a39f6d6372ae8404
parente7f411049f5164ee6db6c3434c07302846f09990
scsi: target/core: Use kvcalloc() instead of open-coding it

This patch does not change any functionality. Note: the code that frees
sess_cmd_map already uses kvfree() so that code does not need to be
modified.

Reviewed-by: David Disseldorp <ddiss@suse.de>
Cc: Nicholas Bellinger <nab@linux-iscsi.org>
Cc: Mike Christie <mchristi@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.de>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_transport.c