summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKiran Gunda <kgunda@codeaurora.org>2016-01-12 19:35:38 +0530
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 21:17:12 -0700
commit7df86692910b09519e37f84eea505fa461b6d7be (patch)
tree59c0c7fccce2b0c1a04ee2c58ce75a33bc140ded
parent6a42808462ec2727953e51c4a78ee68f56316334 (diff)
platform: msm: msm_bus: Fix the NULL pointer dereference
Do not access the node_info pointer when it is null to avoid the crash. Change-Id: I8ca1a26fab847469bd205cbfb4adf63b9194a1d0 Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
-rw-r--r--drivers/soc/qcom/msm_bus/msm_bus_fabric_adhoc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/soc/qcom/msm_bus/msm_bus_fabric_adhoc.c b/drivers/soc/qcom/msm_bus/msm_bus_fabric_adhoc.c
index 91e2db6d21e8..6c890e3b3b4f 100644
--- a/drivers/soc/qcom/msm_bus/msm_bus_fabric_adhoc.c
+++ b/drivers/soc/qcom/msm_bus/msm_bus_fabric_adhoc.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2014-2015, Linux Foundation. All rights reserved.
+/* Copyright (c) 2014-2016, Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -302,8 +302,8 @@ static int flush_bw_data(struct msm_bus_node_device_type *node_info, int ctx)
int ret = 0;
if (!node_info) {
- MSM_BUS_ERR("%s: Unable to find bus device for device %d",
- __func__, node_info->node_info->id);
+ MSM_BUS_ERR("%s: Unable to find bus device for device",
+ __func__);
ret = -ENODEV;
goto exit_flush_bw_data;
}