mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-23 09:42:19 +03:00
nvmap: Fix type casting issue
CERT-C is reporting following issue: - Casting entry->sci_ipc_id from unsigned long long to unsigned int without checking its value may result in lost or misinterpreted data. Fix this by changing the data type of sid to u64. CID 587909 Bug 3745813 Change-Id: I899db1feff8b6f9b175f4a93cab068a3d7a0c88f Signed-off-by: Ketan Patil <ketanp@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2816557 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
Laxman Dewangan
parent
4c2cec49e9
commit
d5be3dd31c
@@ -38,7 +38,7 @@ struct nvmap_sci_ipc {
|
||||
|
||||
struct free_sid_node {
|
||||
struct list_head list;
|
||||
u32 sid;
|
||||
u64 sid;
|
||||
};
|
||||
|
||||
/* An rb-tree root node for holding sci_ipc_id of clients */
|
||||
|
||||
Reference in New Issue
Block a user