projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c4c715
)
target/pr: Fix possible uninitialized variable usage
author
Sagi Grimberg
<sagig@mellanox.com>
Mon, 29 Jun 2015 10:07:06 +0000
(13:07 +0300)
committer
Nicholas Bellinger
<nab@linux-iscsi.org>
Tue, 7 Jul 2015 00:07:30 +0000
(17:07 -0700)
Triggered a compilation warning.
Fixes:
2650d71e2
target: move transport ID handling to the core
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_pr.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/target/target_core_pr.c
b/drivers/target/target_core_pr.c
index 0fdbe43b7dad99479f7288584a0d95815c4dab72..5ab7100de17eb5694b162403ef43585c4bbceaf1 100644
(file)
--- a/
drivers/target/target_core_pr.c
+++ b/
drivers/target/target_core_pr.c
@@
-1474,7
+1474,7
@@
core_scsi3_decode_spec_i_port(
LIST_HEAD(tid_dest_list);
struct pr_transport_id_holder *tidh_new, *tidh, *tidh_tmp;
unsigned char *buf, *ptr, proto_ident;
- const unsigned char *i_str;
+ const unsigned char *i_str
= NULL
;
char *iport_ptr = NULL, i_buf[PR_REG_ISID_ID_LEN];
sense_reason_t ret;
u32 tpdl, tid_len = 0;