commit | a7abda8d721359363d679c5f2de964f29419568c | [log] [tgz] |
---|---|---|
author | minskey guo <chaohong.guo@linux.intel.com> | Fri Sep 17 14:03:27 2010 +0800 |
committer | Matthew Garrett <mjg@redhat.com> | Tue Oct 05 14:59:06 2010 -0400 |
tree | 8f0fe2df8a421a8b1f558a9952fffc2f9d411472 | |
parent | fed522f7ea780d195d5d3e55df95fee520136e17 [diff] |
NULL pointer might be used in ips_monitor() The patch is to create ips_adjust thread before ips_monitor begins to run because the latter will kthread_stop() or wake up the former via ips->adjust pointer. Without this change, it is possible that ips->adjust is NULL when kthread_stop() or wake_up_process() is called in ips_monitor(). Signed-off-by: minskey guo <chaohong.guo@intel.com> Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org> Signed-off-by: Matthew Garrett <mjg@redhat.com>