mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 18:16:01 +03:00
gpu: nvgpu: whitelist CERT-C STR34-C in static_analysis.h
Whitelist CERT-C violation STR34-C in nvgpu_safe_cast_s8_to_u8(). This violation is being reported due to a bug in the Coverity scanner and is tracked by nvbug 2673832. JIRA NVGPU-4031 Change-Id: Ia6b897d162f945836d3da00e539dc59e0fceb1bf Signed-off-by: Philip Elcan <pelcan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2198903 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Alex Waterman
parent
a5f722a5ff
commit
039ec0b3da
@@ -293,6 +293,7 @@ static inline u32 nvgpu_safe_cast_bool_to_u32(bool bl_a)
|
|||||||
|
|
||||||
static inline u8 nvgpu_safe_cast_s8_to_u8(s8 sc_a)
|
static inline u8 nvgpu_safe_cast_s8_to_u8(s8 sc_a)
|
||||||
{
|
{
|
||||||
|
NVGPU_COV_WHITELIST(false_positive, NVGPU_CERT(STR34_C), "Bug 2673832")
|
||||||
if (sc_a < 0) {
|
if (sc_a < 0) {
|
||||||
BUG();
|
BUG();
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user