Attention is currently required from: Felix Singer, Shreeyash .

Felix Singer uploaded patch set #2 to the change originally created by Shreeyash .

View Change

stlinkv3_spi: Bug fix, Initialize uninitialized pointers

Discovered by clang static analysis, `stlinkv3_handle` on line 510 was
a potential comparison of an un-initialized variable. Initializing it
and two other pointers (usb_ctx and stlinkv3_data) to NULL fixes this.

Change-Id: I7ce156a9f7455434ea461560320c84660c93c02f
Signed-off-by: Shreeyash Pandey <shreeyash335@gmail.com>
Signed-off-by: Felix Singer <felixsinger@posteo.net>
---
M stlinkv3_spi.c
1 file changed, 16 insertions(+), 1 deletion(-)

git pull ssh://review.coreboot.org:29418/flashrom refs/changes/25/66225/2

To view, visit change 66225. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I7ce156a9f7455434ea461560320c84660c93c02f
Gerrit-Change-Number: 66225
Gerrit-PatchSet: 2
Gerrit-Owner: Shreeyash <shreeyash335@gmail.com>
Gerrit-Reviewer: Felix Singer <felixsinger@posteo.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-CC: Thomas Heijligen <src@posteo.de>
Gerrit-Attention: Felix Singer <felixsinger@posteo.net>
Gerrit-Attention: Shreeyash <shreeyash335@gmail.com>
Gerrit-MessageType: newpatchset