scsi: qla2xxx: Avoid that qla2x00_mem_free() crashes if called twice
authorBart Van Assche <bvanassche@acm.org>
Wed, 17 Apr 2019 21:44:23 +0000 (14:44 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 29 Apr 2019 21:24:50 +0000 (17:24 -0400)
commitdc035d4e934e586a663cbef0cf7ea3900e12bb7d
tree7fc2c79787c2bafaa32954933cdeccdc5fd6f757
parent5365bf99e360bf3c31f2d5ba8f20f60dd47f6a86
scsi: qla2xxx: Avoid that qla2x00_mem_free() crashes if called twice

Clear each pointer after having freed memory such that it becomes safe to
call qla2x00_mem_free() twice.

Cc: Himanshu Madhani <hmadhani@marvell.com>
Cc: Giridhar Malavali <gmalavali@marvell.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Acked-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_os.c