Revision 97cd6805acf0d6b1b06b439cbc8c25586d73dcfc authored by Akinobu Mita on 24 November 2014, 05:24:18 UTC, committed by Christoph Hellwig on 26 November 2014, 10:32:32 UTC
When dynamic clk gating feature is enabled, delayed workqueue machanism
is used in order to detect certain period of inactivity.  But there is no
guarantee that scheduled gating work is completed before module unloading.
So it can cause kernel crash by accessing memory after it was freed.

Fix it by cancelling clk gating and ungating works and ensure that its
execution is finished before module unloading.

Signed-off-by: Akinobu Mita <mita@fixstars.com>
Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
1 parent e8cb64d
History

back to top