diff options
author | Miloslav Trmač <mitr@redhat.com> | 2010-07-09 12:09:22 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-07-19 09:27:29 +0200 |
commit | be4475d404c7bba99de1beff4c3bb2c5d2094279 (patch) | |
tree | a2785a74e55575e1f9ac65cb7aa95c27e5248424 /ncr-key-wrap.c | |
parent | 92ad9a3b4e56f153d9460bef8a06d8705a68b6c6 (diff) | |
download | kernel-crypto-be4475d404c7bba99de1beff4c3bb2c5d2094279.tar.gz kernel-crypto-be4475d404c7bba99de1beff4c3bb2c5d2094279.tar.xz kernel-crypto-be4475d404c7bba99de1beff4c3bb2c5d2094279.zip |
Represent ENOKEY as a negative value
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Diffstat (limited to 'ncr-key-wrap.c')
-rw-r--r-- | ncr-key-wrap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ncr-key-wrap.c b/ncr-key-wrap.c index 41a7aea431c..f9c019dd1ac 100644 --- a/ncr-key-wrap.c +++ b/ncr-key-wrap.c @@ -559,7 +559,7 @@ int ret; if (master_key.type != NCR_KEY_TYPE_SECRET) { err(); - return ENOKEY; + return -ENOKEY; } if (unlikely(copy_from_user(&wrap, arg, sizeof(wrap)))) { @@ -618,7 +618,7 @@ int ret; if (master_key.type != NCR_KEY_TYPE_SECRET) { err(); - return ENOKEY; + return -ENOKEY; } if (unlikely(copy_from_user(&wrap, arg, sizeof(wrap)))) { |