summaryrefslogtreecommitdiffstats
path: root/cryptodev_cipher.c
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2010-07-09 10:59:34 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-07-19 09:26:33 +0200
commitd420d44c9c8ba98dc7696530f8eeb55f4cbe32ed (patch)
tree0763c5e372afa0e3e114138f755621b9ac20ddc3 /cryptodev_cipher.c
parentef0a304388b3d17a7730f04aa58aef5f94fcbf35 (diff)
downloadcryptodev-linux-d420d44c9c8ba98dc7696530f8eeb55f4cbe32ed.tar.gz
cryptodev-linux-d420d44c9c8ba98dc7696530f8eeb55f4cbe32ed.tar.xz
cryptodev-linux-d420d44c9c8ba98dc7696530f8eeb55f4cbe32ed.zip
sparse: Fix __user annotations
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Diffstat (limited to 'cryptodev_cipher.c')
-rw-r--r--cryptodev_cipher.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cryptodev_cipher.c b/cryptodev_cipher.c
index 85f218c..e7d1b6d 100644
--- a/cryptodev_cipher.c
+++ b/cryptodev_cipher.c
@@ -133,7 +133,7 @@ void cryptodev_cipher_deinit(struct cipher_data* cdata)
}
}
-void cryptodev_cipher_set_iv(struct cipher_data* cdata, void __user* iv, size_t iv_size)
+void cryptodev_cipher_set_iv(struct cipher_data* cdata, void *iv, size_t iv_size)
{
memcpy(cdata->async.iv, iv, min(iv_size,sizeof(cdata->async.iv)));
}