提交 f47c2403 编写于 作者: D Denis Efremov 提交者: Martin K. Petersen

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: NDexuan Cui <decui@microsoft.com>
Reviewed-by: NDexuan Cui <decui@microsoft.com>
Signed-off-by: NDenis Efremov <efremov@linux.com>
Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
上级 89dd9ce7
...@@ -1955,9 +1955,6 @@ static int storvsc_suspend(struct hv_device *hv_dev) ...@@ -1955,9 +1955,6 @@ static int storvsc_suspend(struct hv_device *hv_dev)
vmbus_close(hv_dev->channel); vmbus_close(hv_dev->channel);
memset(stor_device->stor_chns, 0,
num_possible_cpus() * sizeof(void *));
kfree(stor_device->stor_chns); kfree(stor_device->stor_chns);
stor_device->stor_chns = NULL; stor_device->stor_chns = NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册