diff options
author | Denis Efremov <efremov@linux.com> | 2020-06-05 09:59:34 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-06-10 03:57:27 +0200 |
commit | f47c24033a1ac3a08e745f50a28c3dd2c5cceda2 (patch) | |
tree | 33d311d169a6096aadae23f331f16526ab432738 /drivers | |
parent | scsi: cxlflash: Remove an unnecessary NULL check (diff) | |
download | linux-f47c24033a1ac3a08e745f50a28c3dd2c5cceda2.tar.xz linux-f47c24033a1ac3a08e745f50a28c3dd2c5cceda2.zip |
scsi: storvsc: Remove memset before memory freeing in storvsc_suspend()
Remove memset with 0 for stor_device->stor_chns in storvsc_suspend() before
the call to kfree() as the memory contains no sensitive information.
Link: https://lore.kernel.org/r/20200605075934.8403-1-efremov@linux.com
Fixes: 56fb10585934 ("scsi: storvsc: Add the support of hibernation")
Suggested-by: Dexuan Cui <decui@microsoft.com>
Reviewed-by: Dexuan Cui <decui@microsoft.com>
Signed-off-by: Denis Efremov <efremov@linux.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/storvsc_drv.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c index fb41636519ee..59bf028ad682 100644 --- a/drivers/scsi/storvsc_drv.c +++ b/drivers/scsi/storvsc_drv.c @@ -1955,9 +1955,6 @@ static int storvsc_suspend(struct hv_device *hv_dev) vmbus_close(hv_dev->channel); - memset(stor_device->stor_chns, 0, - num_possible_cpus() * sizeof(void *)); - kfree(stor_device->stor_chns); stor_device->stor_chns = NULL; |