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