]> www.infradead.org Git - users/jedix/linux-maple.git/commit
lpfc: Use kzalloc instead of kmalloc
authorPunit Vara <punitvara@gmail.com>
Wed, 16 Dec 2015 23:12:07 +0000 (18:12 -0500)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 26 Feb 2016 02:38:01 +0000 (18:38 -0800)
commit1990059714ddaf2da7b98baa41eab9aa28d05566
tree0683ef9553617d45d614936669c764747d713408
parentb95c0d394f1786c9109926f08bd418404e834d26
lpfc: Use kzalloc instead of kmalloc

This patch is to the lpfc_els.c which resolves following warning
reported by coccicheck:

WARNING: kzalloc should be used for rdp_context, instead of
kmalloc/memset

Signed-off-by: Punit Vara <punitvara@gmail.com>
Signed-off-by: James Smart <james.smart@avagotech.com>
Reviewed-by: Hannes Reinicke <hare@suse.de>
Reviewed-by: Matthew R. Ochs <mrochs@linux.vnet.ibm.com>
Reviewed-by: Sebastian Herbszt <herbszt@gmx.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
(cherry picked from commit 699acd6220ea5b20b25d5eec0ab448827d745357)

Orabug: 22493326

Signed-off-by: Manjunath Govindashetty <manjunath.govindashetty@oracle.com>
drivers/scsi/lpfc/lpfc_els.c