aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/sccnxp.c
diff options
context:
space:
mode:
authorAkinobu Mita <[email protected]>2014-11-24 05:24:18 +0000
committerChristoph Hellwig <[email protected]>2014-11-26 10:32:32 +0000
commit97cd6805acf0d6b1b06b439cbc8c25586d73dcfc (patch)
treeeb9984611dcdf7f751c24479d8f88d740de4ba45 /drivers/tty/serial/sccnxp.c
parentscsi: ufs: fix static checker warning in ufshcd_parse_clock_info (diff)
downloadkernel-97cd6805acf0d6b1b06b439cbc8c25586d73dcfc.tar.gz
kernel-97cd6805acf0d6b1b06b439cbc8c25586d73dcfc.zip
ufs: ensure clk gating work is finished before module unloading
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 <[email protected]> Reviewed-by: Subhash Jadavani <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'drivers/tty/serial/sccnxp.c')
0 files changed, 0 insertions, 0 deletions