Re: [PATCH] KEYS: Fix an RCU warning

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric Dumazet
Date: Wednesday, April 7, 2010 - 7:49 am

Le mercredi 07 avril 2010 à 15:14 +0100, David Howells a écrit :


This fix is really wrong David.



You should instead do :

rcu_read_lock();
skeyring = rcu_dereference(cred->tgcred->session_keyring);
if (skeyring)
	sskey = sskeyring->serial;
else
	sskey = cred->user->session_keyring->serial;
rcu_read_unlock();



--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] KEYS: Fix an RCU warning, David Howells, (Wed Apr 7, 7:14 am)
Re: [PATCH] KEYS: Fix an RCU warning, Eric Dumazet, (Wed Apr 7, 7:49 am)