diff options
-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 41a7aea..f9c019d 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)))) { |