From 8894f6dfa4a87ae3d189208dc6868d237ee7641b Mon Sep 17 00:00:00 2001 From: David Howells Date: Sun, 30 Oct 2005 15:02:44 -0800 Subject: [PATCH] --- yaml --- r: 11850 b: refs/heads/master c: 20e1129ab831486c811d50d3905343ad48c4275f h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/kernel/kmod.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index f8d4210ae69f..4d81f27efa69 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 29db9190634067c5a328ee5fcc2890251b836b4b +refs/heads/master: 20e1129ab831486c811d50d3905343ad48c4275f diff --git a/trunk/kernel/kmod.c b/trunk/kernel/kmod.c index 44166e3bb8af..51a892063aaa 100644 --- a/trunk/kernel/kmod.c +++ b/trunk/kernel/kmod.c @@ -131,14 +131,14 @@ struct subprocess_info { static int ____call_usermodehelper(void *data) { struct subprocess_info *sub_info = data; - struct key *old_session; + struct key *new_session, *old_session; int retval; /* Unblock all signals and set the session keyring. */ - key_get(sub_info->ring); + new_session = key_get(sub_info->ring); flush_signals(current); spin_lock_irq(¤t->sighand->siglock); - old_session = __install_session_keyring(current, sub_info->ring); + old_session = __install_session_keyring(current, new_session); flush_signal_handlers(current, 1); sigemptyset(¤t->blocked); recalc_sigpending();