1219820SjeffPass return code to caller in mlx4_close_xrc_domain. 2219820Sjeff 3219820Sjeffibv_cmd_close_xrc_domain() can return a busy or invalid error code. 4219820SjeffNeed to pass this upward to caller. 5219820Sjeff(Bugzilla 999) 6219820Sjeff 7219820SjeffSigned-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il> 8219820Sjeff 9219820SjeffIndex: libmlx4/src/verbs.c 10219820Sjeff=================================================================== 11219820Sjeff--- libmlx4.orig/src/verbs.c 2008-09-01 10:51:11.000000000 +0300 12219820Sjeff+++ libmlx4/src/verbs.c 2008-09-01 10:52:40.000000000 +0300 13219820Sjeff@@ -774,9 +774,11 @@ 14219820Sjeff 15219820Sjeff int mlx4_close_xrc_domain(struct ibv_xrc_domain *d) 16219820Sjeff { 17219820Sjeff- ibv_cmd_close_xrc_domain(d); 18219820Sjeff- free(d); 19219820Sjeff- return 0; 20219820Sjeff+ int ret; 21219820Sjeff+ ret = ibv_cmd_close_xrc_domain(d); 22219820Sjeff+ if (!ret) 23219820Sjeff+ free(d); 24219820Sjeff+ return ret; 25219820Sjeff } 26219820Sjeff 27219820Sjeff int mlx4_create_xrc_rcv_qp(struct ibv_qp_init_attr *init_attr, 28