]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6cebe9f84aa97117bbfd97e184f0566e55b35894
tree8a46441073a3bff0f4aea659a39f6d6372ae8404
parentbd474a2d883ae1e8545a54efd4660251e9753f95
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