Thread (1 message) 1 message, 1 author, 2016-07-28

Re: [PATCH 02/28] IB/hfi1: Fix to fully initialize send context area

From: ira.weiny <hidden>
Date: 2016-07-28 16:32:09

On Tue, Jul 26, 2016 at 08:26:57AM +0300, Leon Romanovsky wrote:
On Mon, Jul 25, 2016 at 01:38:01PM -0700, Dennis Dalessandro wrote:
quoted
From: Tymoteusz Kielan <redacted>

 
-	dd->kernel_send_context = kmalloc_node(dd->num_send_contexts *
+	dd->kernel_send_context = kzalloc_node(dd->num_send_contexts *
 					sizeof(struct send_context *),
 					GFP_KERNEL, dd->node);
Dennis,
Don't you want to check kzalloc_node execution success
prior to use dd->kernel_send_context?
Again thanks for catching this.  Follow on fix was sent which depends on this
patch.

Thanks,
Ira
quoted
 	dd->kernel_send_context[0] = dd->vld[15].sc;

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help