Thread (1 message) 1 message, 1 author, 2011-08-16

RE: Question about libibcm

From: Hefty, Sean <hidden>
Date: 2011-08-16 23:43:11

-	if (param->path) {
-		abi_path = alloca(sizeof(*abi_path));
-		if (!abi_path)
-			return ERR(ENOMEM);
+	abi_path = alloca(sizeof(*abi_path));
+	if (!abi_path)
+		return ERR(ENOMEM);
There's no reason for alloca() here, so I replaced it with a stack variable.  This same sort of check was also in ib_cm_send_req() and ib_cm_send_lap().  I updated those as well.

- Sean
--
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