Lines Matching refs:resp
14 struct ksmbd_login_response *resp;
17 resp = ksmbd_ipc_login_request(account);
18 if (!resp)
21 if (!(resp->status & KSMBD_USER_FLAG_OK))
24 user = ksmbd_alloc_user(resp);
26 kvfree(resp);
30 struct ksmbd_user *ksmbd_alloc_user(struct ksmbd_login_response *resp)
38 user->name = kstrdup(resp->account, GFP_KERNEL);
39 user->flags = resp->status;
40 user->gid = resp->gid;
41 user->uid = resp->uid;
42 user->passkey_sz = resp->hash_sz;
43 user->passkey = kmalloc(resp->hash_sz, GFP_KERNEL);
45 memcpy(user->passkey, resp->hash, resp->hash_sz);