From: Tetsuo Handa Date: Fri, 3 Jan 2014 11:42:18 +0000 (+0900) Subject: drm/i915: Fix refcount leak and possible NULL pointerdereference. X-Git-Tag: v3.14-rc1~47^2~16^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ec2f427e6f82b9b8f9b18dd2c758b864385df39;p=pandora-kernel.git drm/i915: Fix refcount leak and possible NULL pointerdereference. Since get_pid_task() grabs a reference on the task_struct, we have to drop the refcount after reading that task's comm name. Use pid_task() with RCU instead. Also, avoid directly reading like pid_task()->comm because pid_task() will return NULL if the task have already exit()ed. This patch fixes both problems. Signed-off-by: Tetsuo Handa Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed