summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorAbinaya P <abinayap@codeaurora.org>2018-03-15 17:54:36 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2019-02-15 03:17:41 -0800
commitdc5e3b50e50316f18522bd19dc40dc5c9e87518b (patch)
treeac04737d9a54bfa95546052d8af5cbae09778428 /include/linux/debugobjects.h
parent4794e0b1842c52dc872e471a33222e829ecfee57 (diff)
drivers: leds-qpnp-flash: fix issues raised by static analyser
Fix the below mentioned issues raised by static analyser: 1. use of uninitialized values in the function. a) 'root' may be uninitialized when it reaches line:2599. Hence, modify the error path accordingly. b) 'j' may be uninitialized when it reaches the for loop in line: 2593 and may hold garbage value due to which the condition in the for loop may become true and this may lead to erroneous results. Hence, initialize it to -1 so that the error path will be handled correctly. 2. Comparison of unsigned value against 0 is always false. CRs-fixed: 2206448 Change-Id: I56950779d221acf3572cba70a64874299f127004 Signed-off-by: Kiran Gunda <kgunda@codeaurora.org> Signed-off-by: Shilpa Suresh <sbsure@codeaurora.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions