]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
NULL pointer might be used in ips_monitor()
authorminskey guo <chaohong.guo@linux.intel.com>
Fri, 17 Sep 2010 06:03:27 +0000 (14:03 +0800)
committerMatthew Garrett <mjg@redhat.com>
Tue, 5 Oct 2010 18:59:06 +0000 (14:59 -0400)
commita7abda8d721359363d679c5f2de964f29419568c
tree8f0fe2df8a421a8b1f558a9952fffc2f9d411472
parentfed522f7ea780d195d5d3e55df95fee520136e17
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>
drivers/platform/x86/intel_ips.c