mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
storage: fix cert-c issue in storage driver
Using this patch we are fixing below cert error:- 1. cert_exp33_c_violation: Using uninitialized value ioctl_req->status when calling vblk_complete_mmc_multi_ioc. CID 646845 Bug 3512545 Signed-off-by: Manish Bhardwaj <mbhardwaj@nvidia.com> Change-Id: I7127dbbc3259a8f42dac5003a56e0aa932053f81 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2930565 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
2529d12c52
commit
ef4d81b7d7
@@ -1,6 +1,6 @@
|
|||||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
* Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <linux/version.h>
|
#include <linux/version.h>
|
||||||
@@ -93,7 +93,7 @@ int vblk_submit_ioctl_req(struct block_device *bdev,
|
|||||||
if (!capable(CAP_SYS_RAWIO))
|
if (!capable(CAP_SYS_RAWIO))
|
||||||
return -EPERM;
|
return -EPERM;
|
||||||
|
|
||||||
ioctl_req = kmalloc(sizeof(struct vblk_ioctl_req), GFP_KERNEL);
|
ioctl_req = kzalloc(sizeof(struct vblk_ioctl_req), GFP_KERNEL);
|
||||||
if (!ioctl_req) {
|
if (!ioctl_req) {
|
||||||
dev_err(vblkdev->device,
|
dev_err(vblkdev->device,
|
||||||
"failed to alloc memory for ioctl req!\n");
|
"failed to alloc memory for ioctl req!\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user