projects
/
project
/
bcm63xx
/
atf.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ee48f4
)
Fix Coverity #342970, Uninitialized scalar variable
author
Justin Chadwell
<justin.chadwell@arm.com>
Tue, 23 Jul 2019 08:45:18 +0000
(09:45 +0100)
committer
Justin Chadwell
<justin.chadwell@arm.com>
Tue, 6 Aug 2019 12:05:57 +0000
(13:05 +0100)
This ensures that probe_data starts with a reasonable default, as
opposed to whatever was left on the stack.
Change-Id: I5550efea5e2bec7717f9fa063cb11e6a7005cce5
Signed-off-by: Justin Chadwell <justin.chadwell@arm.com>
lib/extensions/ras/ras_common.c
patch
|
blob
|
history
diff --git
a/lib/extensions/ras/ras_common.c
b/lib/extensions/ras/ras_common.c
index be8beceeb4972a89215b51c66870e7a7c287323a..64a48524b8a9b368fc99a17847688d72b5adda54 100644
(file)
--- a/
lib/extensions/ras/ras_common.c
+++ b/
lib/extensions/ras/ras_common.c
@@
-1,5
+1,5
@@
/*
- * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
+ * Copyright (c) 2018
-2019
, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
@@
-83,7
+83,8
@@
static int ras_interrupt_handler(uint32_t intr_raw, uint32_t flags,
{
struct ras_interrupt *ras_inrs = ras_interrupt_mappings.intrs;
struct ras_interrupt *selected = NULL;
- int start, end, mid, probe_data, ret __unused;
+ int probe_data = 0;
+ int start, end, mid, ret __unused;
const struct err_handler_data err_data = {
.version = ERR_HANDLER_VERSION,