~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to security/keys/trusted.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 * it under the terms of the GNU General Public License as published by
9
9
 * the Free Software Foundation, version 2 of the License.
10
10
 *
11
 
 * See Documentation/keys-trusted-encrypted.txt
 
11
 * See Documentation/security/keys-trusted-encrypted.txt
12
12
 */
13
13
 
14
14
#include <linux/uaccess.h>
1076
1076
        char *bufp;
1077
1077
        int i;
1078
1078
 
1079
 
        p = rcu_dereference_protected(key->payload.data,
1080
 
                        rwsem_is_locked(&((struct key *)key)->sem));
 
1079
        p = rcu_dereference_key(key);
1081
1080
        if (!p)
1082
1081
                return -EINVAL;
1083
1082
        if (!buffer || buflen <= 0)