mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 11:11:27 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user