From: Serge Hallyn Date: Mon, 26 Sep 2011 15:18:29 +0000 (-0500) Subject: USB: pid_ns: ensure pid is not freed during kill_pid_info_as_uid X-Git-Tag: v3.2-rc1~183^2~111 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aec01c5895051849ed842dc5b8794017a7751f28;p=pandora-kernel.git USB: pid_ns: ensure pid is not freed during kill_pid_info_as_uid Alan Stern points out that after spin_unlock(&ps->lock) there is no guarantee that ps->pid won't be freed. Since kill_pid_info_as_uid() is called after the spin_unlock(), the pid passed to it must be pinned. Reported-by: Alan Stern Signed-off-by: Serge Hallyn Cc: stable Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed