]> Git Repo - linux.git/commitdiff
scsi: storvsc: Remove memset before memory freeing in storvsc_suspend()
authorDenis Efremov <[email protected]>
Fri, 5 Jun 2020 07:59:34 +0000 (10:59 +0300)
committerMartin K. Petersen <[email protected]>
Wed, 10 Jun 2020 01:57:27 +0000 (21:57 -0400)
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/[email protected]
Fixes: 56fb10585934 ("scsi: storvsc: Add the support of hibernation")
Suggested-by: Dexuan Cui <[email protected]>
Reviewed-by: Dexuan Cui <[email protected]>
Signed-off-by: Denis Efremov <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
drivers/scsi/storvsc_drv.c

index fb41636519ee80a6dd92723311783b84346e7c63..59bf028ad6824769a5ed76c7570e96fa39ba0805 100644 (file)
@@ -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;
 
This page took 0.062131 seconds and 4 git commands to generate.