Removed cpumask_clear as it is not required for zalloc_cpumask_var and
free free_cpumask_var before freeing reply_q.
Signed-off-by: Suganath prabu Subramani <suganath-prabu.subramani@broadcom.com>
Signed-off-by: Chaitra P B <chaitra.basappa@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
kfree(reply_q);
return -ENOMEM;
}
- cpumask_clear(reply_q->affinity_hint);
}
atomic_set(&reply_q->busy, 0);
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;
}