[linux-yocto] [PATCH 4/5] ocf: pass the correct size argument to memset

Kevin Hao kexin.hao at windriver.com
Sun Oct 20 20:12:40 PDT 2013


Signed-off-by: Kevin Hao <kexin.hao at windriver.com>
---
 crypto/ocf/cryptosoft.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crypto/ocf/cryptosoft.c b/crypto/ocf/cryptosoft.c
index aa2383d1f02e..7b5e938940ef 100644
--- a/crypto/ocf/cryptosoft.c
+++ b/crypto/ocf/cryptosoft.c
@@ -320,7 +320,7 @@ execute_later(void (fn)(void *), void *arg)
 
 	w = (execute_later_t *) kmalloc(sizeof(execute_later_t), SLAB_ATOMIC);
 	if (w) {
-		memset(w, '\0', sizeof(w));
+		memset(w, '\0', sizeof(*w));
 		w->func = fn;
 		w->arg = arg;
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,20)
-- 
1.8.3.1




More information about the linux-yocto mailing list