Merge "soc: qcom: glink_ssr: Set NULL after free"

This commit is contained in:
Linux Build Service Account 2017-02-03 06:26:50 -08:00 committed by Gerrit - the friendly Code Review server
commit 4cdd068494

View file

@ -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 * 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 * 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); BUG_ON(!ss_info->cb_data);
kfree(ss_info->cb_data); kfree(ss_info->cb_data);
ss_info->cb_data = NULL;
kfree(close_work); kfree(close_work);
} }