Skip to content

Commit f47c240

Browse files
evdenismartinkpetersen
authored andcommitted
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/[email protected] Fixes: 56fb105 ("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]>
1 parent 89dd9ce commit f47c240

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/scsi/storvsc_drv.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1955,9 +1955,6 @@ static int storvsc_suspend(struct hv_device *hv_dev)
19551955

19561956
vmbus_close(hv_dev->channel);
19571957

1958-
memset(stor_device->stor_chns, 0,
1959-
num_possible_cpus() * sizeof(void *));
1960-
19611958
kfree(stor_device->stor_chns);
19621959
stor_device->stor_chns = NULL;
19631960

0 commit comments

Comments
 (0)