aboutsummaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>2014-01-03 20:42:18 +0900
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-01-06 10:56:36 +0100
commit3ec2f427e6f82b9b8f9b18dd2c758b864385df39 (patch)
treeaf3cabbed351bc396ac4ff44fbd725e4d8f9b4d6 /fs
parentd8ccba866356e5b8989ff9081df66cf300b1f834 (diff)
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 <penguin-kernel@I-love.SAKURA.ne.jp> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions