From cc636f99c296d7dc844ce7c9da95c4da92285175 Mon Sep 17 00:00:00 2001 From: koenz Date: Tue, 3 Jan 2023 14:20:54 +0800 Subject: [PATCH] driver/misc/mods: fix coverity issue Fix coverity issue CID 10165202 Bug 3461002 Signed-off-by: Koen Zhao Change-Id: I398dcb0e5a5b0027da09be4d23f88c6067da38cc Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2836338 Reviewed-by: svcacv Reviewed-by: svc-mobile-coverity Reviewed-by: svc-mobile-cert Reviewed-by: Sachin Nikam Reviewed-by: svc_kernel_abi GVS: Gerrit_Virtual_Submit --- drivers/misc/mods/mods_bpmpipc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/misc/mods/mods_bpmpipc.c b/drivers/misc/mods/mods_bpmpipc.c index f1ba81a0..6c78fc7c 100644 --- a/drivers/misc/mods/mods_bpmpipc.c +++ b/drivers/misc/mods/mods_bpmpipc.c @@ -2,7 +2,7 @@ /* * This file is part of NVIDIA MODS kernel driver. * - * Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2022-2023, NVIDIA CORPORATION. All rights reserved. * * NVIDIA MODS kernel driver is free software: you can redistribute it and/or * modify it under the terms of the GNU General Public License, @@ -106,7 +106,7 @@ static int bpmp_ipc_recv(struct mods_client *client, const void *frame; ktime_t end; - end = ktime_add_us(ktime_get(), timeout_ms * 1000); + end = ktime_add_ms(ktime_get(), timeout_ms); do { frame = tegra_ivc_read_get_next_frame(ivc); if (!IS_ERR(frame))