Skip to content
Commit f47c2403 authored by Denis Efremov's avatar Denis Efremov Committed by Martin K. Petersen
Browse files

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: 56fb1058 ("scsi: storvsc: Add the support of hibernation")
Suggested-by: default avatarDexuan Cui <decui@microsoft.com>
Reviewed-by: default avatarDexuan Cui <decui@microsoft.com>
Signed-off-by: default avatarDenis Efremov <efremov@linux.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 89dd9ce7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment