summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2017-02-03 06:26:50 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2017-02-03 06:26:49 -0800
commit4cdd0684948d84b58f6d151736c6600acb7a6665 (patch)
treeb906b397bd99b752612be345fb68ec1fb637fb54
parentac0ef02816bf22ade6fa271ee7ff0aa7363a0d33 (diff)
parent4513fe91d755469862a24c9ebca6b3209a6926fc (diff)
Merge "soc: qcom: glink_ssr: Set NULL after free"
-rw-r--r--drivers/soc/qcom/glink_ssr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/soc/qcom/glink_ssr.c b/drivers/soc/qcom/glink_ssr.c
index 4d94e6446505..5e2dbc8b1d20 100644
--- a/drivers/soc/qcom/glink_ssr.c
+++ b/drivers/soc/qcom/glink_ssr.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2014-2016, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2014-2017, The 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
@@ -339,6 +339,7 @@ void close_ch_worker(struct work_struct *work)
BUG_ON(!ss_info->cb_data);
kfree(ss_info->cb_data);
+ ss_info->cb_data = NULL;
kfree(close_work);
}