diff options
| author | Linux Build Service Account <lnxbuild@localhost> | 2017-02-25 01:09:28 -0800 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-02-25 01:09:28 -0800 |
| commit | 1774aa59efac0bf184a9ba2cb0344e3f4e066203 (patch) | |
| tree | e900c382c73be1d278ec0efa2f1bb23d9c32b52d /drivers | |
| parent | 8f0acd2665ff73b990d1e72aa8b95e9472b25578 (diff) | |
| parent | f8559c8f88391593bfdffea4892fba6282a63d1b (diff) | |
Merge "soc: qcom: msm_smem: Fix uninitialized variable usage"
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/soc/qcom/glink.c | 4 | ||||
| -rw-r--r-- | drivers/soc/qcom/msm_smem.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/soc/qcom/glink.c b/drivers/soc/qcom/glink.c index 33cf48454414..09c50a81a943 100644 --- a/drivers/soc/qcom/glink.c +++ b/drivers/soc/qcom/glink.c @@ -2048,7 +2048,7 @@ static struct glink_core_xprt_ctx *find_open_transport(const char *edge, uint16_t *best_id) { struct glink_core_xprt_ctx *xprt; - struct glink_core_xprt_ctx *best_xprt; + struct glink_core_xprt_ctx *best_xprt = NULL; struct glink_core_xprt_ctx *ret; bool first = true; @@ -5502,7 +5502,7 @@ static void tx_func(struct kthread_work *work) { struct channel_ctx *ch_ptr; uint32_t prio; - uint32_t tx_ready_head_prio; + uint32_t tx_ready_head_prio = 0; int ret; struct channel_ctx *tx_ready_head = NULL; bool transmitted_successfully = true; diff --git a/drivers/soc/qcom/msm_smem.c b/drivers/soc/qcom/msm_smem.c index d3f44ab75f67..a94f741c2056 100644 --- a/drivers/soc/qcom/msm_smem.c +++ b/drivers/soc/qcom/msm_smem.c @@ -1157,7 +1157,7 @@ static void smem_module_init_notify(uint32_t state, void *data) static void smem_init_security_partition(struct smem_toc_entry *entry, uint32_t num) { - uint16_t remote_host; + uint16_t remote_host = 0; struct smem_partition_header *hdr; bool is_comm_partition = false; |
