ib_srpt: Handle thread creation failure properly

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4267 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2012-05-02 13:57:07 +00:00
parent ac77b3110d
commit c2cea7b776

View File

@@ -2497,7 +2497,7 @@ static int srpt_cm_req_recv(struct ib_cm_id *cm_id,
ch->sport->sdev->device->name);
if (IS_ERR(thread)) {
rej->reason = cpu_to_be32(SRP_LOGIN_REJ_INSUFFICIENT_RESOURCES);
ret = PTR_ERR(ch->thread);
ret = PTR_ERR(thread);
PRINT_ERROR("failed to create kernel thread: %d", ret);
goto unreg_ch;
}