]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/scsi/libsas.h
Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild
[karo-tx-linux.git] / include / scsi / libsas.h
index 8516ba68cc959a83a5e09e7a5142d921f3cd2dd9..ad0182ef7809bba62450e4788dfb658fd601ce8d 100644 (file)
@@ -567,10 +567,9 @@ struct sas_task {
 static inline struct sas_task *sas_alloc_task(gfp_t flags)
 {
        extern struct kmem_cache *sas_task_cache;
-       struct sas_task *task = kmem_cache_alloc(sas_task_cache, flags);
+       struct sas_task *task = kmem_cache_zalloc(sas_task_cache, flags);
 
        if (task) {
-               memset(task, 0, sizeof(*task));
                INIT_LIST_HEAD(&task->list);
                spin_lock_init(&task->task_state_lock);
                task->task_state_flags = SAS_TASK_STATE_PENDING;