提交 da3cec25 编写于 作者: S Suganath prabu Subramani 提交者: Martin K. Petersen

mpt3sas: Remove cpumask_clear for zalloc_cpumask_var and don't free...

mpt3sas: Remove cpumask_clear for zalloc_cpumask_var and don't free free_cpu_mask_var before reply_q

Removed cpumask_clear as it is not required for zalloc_cpumask_var and
free free_cpumask_var before freeing reply_q.
Signed-off-by: NSuganath prabu Subramani <suganath-prabu.subramani@broadcom.com>
Signed-off-by: NChaitra P B <chaitra.basappa@broadcom.com>
Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
上级 1c2ba475
......@@ -1855,7 +1855,6 @@ _base_request_irq(struct MPT3SAS_ADAPTER *ioc, u8 index, u32 vector)
kfree(reply_q);
return -ENOMEM;
}
cpumask_clear(reply_q->affinity_hint);
}
atomic_set(&reply_q->busy, 0);
......@@ -1870,8 +1869,8 @@ _base_request_irq(struct MPT3SAS_ADAPTER *ioc, u8 index, u32 vector)
if (r) {
pr_err(MPT3SAS_FMT "unable to allocate interrupt %d!\n",
reply_q->name, vector);
kfree(reply_q);
free_cpumask_var(reply_q->affinity_hint);
kfree(reply_q);
return -EBUSY;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册