X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lnet%2Flnet%2Fapi-ni.c;h=4fd4133338b1712b2fa22a81b9bf25803b1d166f;hp=74d5b03769b969668e8b588408cebfbf051c3708;hb=66e9055b23433bd0aa8da5e49f3b665fb1b95532;hpb=138a8d14b48951b32a25d2ceada583bfdba494ce;ds=inline diff --git a/lnet/lnet/api-ni.c b/lnet/lnet/api-ni.c index 74d5b03..4fd4133 100644 --- a/lnet/lnet/api-ni.c +++ b/lnet/lnet/api-ni.c @@ -1447,6 +1447,10 @@ lnet_shutdown_lndni(__u32 net) return 0; } +/* + * Callers of lnet_startup_lndnis need to clean up using + * lnet_shutdown_lndnis if startup fails + */ static int lnet_startup_lndnis(struct list_head *nilist, __s32 peer_timeout, __s32 peer_cr, __s32 peer_buf_cr, __s32 credits, @@ -1794,7 +1798,7 @@ LNetNIInit(lnet_pid_t requested_pid) rc = lnet_startup_lndnis(&net_head, -1, -1, -1, -1, &ni_count); if (rc != 0) - goto failed1; + goto failed2; if (the_lnet.ln_eq_waitni != NULL && ni_count > 1) { lnd_type = the_lnet.ln_eq_waitni->ni_lnd->lnd_type;