From aec01c5895051849ed842dc5b8794017a7751f28 Mon Sep 17 00:00:00 2001 From: Serge Hallyn Date: Mon, 26 Sep 2011 10:18:29 -0500 Subject: [PATCH] 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-format-patch failed