keys: don't need to use RCU in keyring_read() as semaphore is held
[pandora-kernel.git] / security / keys / keyring.c
index e814d21..dd7cd0f 100644 (file)
@@ -201,7 +201,7 @@ static long keyring_read(const struct key *keyring,
        int loop, ret;
 
        ret = 0;
-       klist = rcu_dereference(keyring->payload.subscriptions);
+       klist = keyring->payload.subscriptions;
 
        if (klist) {
                /* calculate how much data we could return */