> - 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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html