From 602f745df5f7372dc21242084011f8e6c790bb6c Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 28 Dec 2017 18:41:09 +0000 Subject: [PATCH] ib_srpt: Rename a goto label git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7290 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index 3f42e7248..782860cfc 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -2668,7 +2668,7 @@ static int srpt_cm_req_recv(struct srpt_device *const sdev, rej->reason = cpu_to_be32(SRP_LOGIN_REJ_INSUFFICIENT_RESOURCES); ret = PTR_ERR(thread); pr_err("failed to create kernel thread: %d\n", ret); - goto unreg_ch; + goto release_channel; } mutex_lock(&sport->mutex); @@ -2774,7 +2774,7 @@ static int srpt_cm_req_recv(struct srpt_device *const sdev, goto out; -unreg_ch: +release_channel: scst_unregister_session(ch->sess, true, NULL); destroy_ib: