Lines Matching full:resp
14 struct ksmbd_login_response *resp; in ksmbd_login_user() local
18 resp = ksmbd_ipc_login_request(account); in ksmbd_login_user()
19 if (!resp) in ksmbd_login_user()
22 if (!(resp->status & KSMBD_USER_FLAG_OK)) in ksmbd_login_user()
25 if (resp->status & KSMBD_USER_FLAG_EXTENSION) in ksmbd_login_user()
28 user = ksmbd_alloc_user(resp, resp_ext); in ksmbd_login_user()
30 kvfree(resp); in ksmbd_login_user()
34 struct ksmbd_user *ksmbd_alloc_user(struct ksmbd_login_response *resp, in ksmbd_alloc_user() argument
43 user->name = kstrdup(resp->account, GFP_KERNEL); in ksmbd_alloc_user()
44 user->flags = resp->status; in ksmbd_alloc_user()
45 user->gid = resp->gid; in ksmbd_alloc_user()
46 user->uid = resp->uid; in ksmbd_alloc_user()
47 user->passkey_sz = resp->hash_sz; in ksmbd_alloc_user()
48 user->passkey = kmalloc(resp->hash_sz, GFP_KERNEL); in ksmbd_alloc_user()
50 memcpy(user->passkey, resp->hash, resp->hash_sz); in ksmbd_alloc_user()