Loading fs/cifsd/buffer_pool.c +1 −1 Original line number Diff line number Diff line Loading @@ -63,7 +63,7 @@ static int register_wm_size_class(size_t sz) { struct wm_list *l, *nl; nl = kvmalloc(sizeof(struct wm_list), GFP_KERNEL); nl = kmalloc(sizeof(struct wm_list), GFP_KERNEL); if (!nl) return -ENOMEM; Loading fs/cifsd/mgmt/share_config.c +2 −2 Original line number Diff line number Diff line Loading @@ -92,7 +92,7 @@ static int parse_veto_list(struct ksmbd_share_config *share, while (veto_list_sz > 0) { struct ksmbd_veto_pattern *p; p = ksmbd_alloc(sizeof(struct ksmbd_veto_pattern)); p = kzalloc(sizeof(struct ksmbd_veto_pattern), GFP_KERNEL); if (!p) return -ENOMEM; Loading Loading @@ -129,7 +129,7 @@ static struct ksmbd_share_config *share_config_request(char *name) if (resp->flags == KSMBD_SHARE_FLAG_INVALID) goto out; share = ksmbd_alloc(sizeof(struct ksmbd_share_config)); share = kzalloc(sizeof(struct ksmbd_share_config), GFP_KERNEL); if (!share) goto out; Loading fs/cifsd/mgmt/user_config.c +2 −2 Original line number Diff line number Diff line Loading @@ -31,7 +31,7 @@ struct ksmbd_user *ksmbd_alloc_user(struct ksmbd_login_response *resp) { struct ksmbd_user *user = NULL; user = ksmbd_alloc(sizeof(struct ksmbd_user)); user = kmalloc(sizeof(struct ksmbd_user), GFP_KERNEL); if (!user) return NULL; Loading @@ -40,7 +40,7 @@ struct ksmbd_user *ksmbd_alloc_user(struct ksmbd_login_response *resp) user->gid = resp->gid; user->uid = resp->uid; user->passkey_sz = resp->hash_sz; user->passkey = ksmbd_alloc(resp->hash_sz); user->passkey = kmalloc(resp->hash_sz, GFP_KERNEL); if (user->passkey) memcpy(user->passkey, resp->hash, resp->hash_sz); Loading fs/cifsd/mgmt/user_session.c +2 −2 Original line number Diff line number Diff line Loading @@ -101,7 +101,7 @@ int ksmbd_session_rpc_open(struct ksmbd_session *sess, char *rpc_name) if (!method) return -EINVAL; entry = ksmbd_alloc(sizeof(struct ksmbd_session_rpc)); entry = kzalloc(sizeof(struct ksmbd_session_rpc), GFP_KERNEL); if (!entry) return -EINVAL; Loading Loading @@ -266,7 +266,7 @@ static struct ksmbd_session *__session_create(int protocol) struct ksmbd_session *sess; int ret; sess = ksmbd_alloc(sizeof(struct ksmbd_session)); sess = kzalloc(sizeof(struct ksmbd_session), GFP_KERNEL); if (!sess) return NULL; Loading fs/cifsd/oplock.c +1 −1 Original line number Diff line number Diff line Loading @@ -593,7 +593,7 @@ static int oplock_break_pending(struct oplock_info *opinfo, int req_op_level) static inline int allocate_oplock_break_buf(struct ksmbd_work *work) { work->response_buf = ksmbd_alloc_response(MAX_CIFS_SMALL_BUFFER_SIZE); work->response_buf = kzalloc(MAX_CIFS_SMALL_BUFFER_SIZE, GFP_KERNEL); if (!work->response_buf) return -ENOMEM; work->response_sz = MAX_CIFS_SMALL_BUFFER_SIZE; Loading Loading
fs/cifsd/buffer_pool.c +1 −1 Original line number Diff line number Diff line Loading @@ -63,7 +63,7 @@ static int register_wm_size_class(size_t sz) { struct wm_list *l, *nl; nl = kvmalloc(sizeof(struct wm_list), GFP_KERNEL); nl = kmalloc(sizeof(struct wm_list), GFP_KERNEL); if (!nl) return -ENOMEM; Loading
fs/cifsd/mgmt/share_config.c +2 −2 Original line number Diff line number Diff line Loading @@ -92,7 +92,7 @@ static int parse_veto_list(struct ksmbd_share_config *share, while (veto_list_sz > 0) { struct ksmbd_veto_pattern *p; p = ksmbd_alloc(sizeof(struct ksmbd_veto_pattern)); p = kzalloc(sizeof(struct ksmbd_veto_pattern), GFP_KERNEL); if (!p) return -ENOMEM; Loading Loading @@ -129,7 +129,7 @@ static struct ksmbd_share_config *share_config_request(char *name) if (resp->flags == KSMBD_SHARE_FLAG_INVALID) goto out; share = ksmbd_alloc(sizeof(struct ksmbd_share_config)); share = kzalloc(sizeof(struct ksmbd_share_config), GFP_KERNEL); if (!share) goto out; Loading
fs/cifsd/mgmt/user_config.c +2 −2 Original line number Diff line number Diff line Loading @@ -31,7 +31,7 @@ struct ksmbd_user *ksmbd_alloc_user(struct ksmbd_login_response *resp) { struct ksmbd_user *user = NULL; user = ksmbd_alloc(sizeof(struct ksmbd_user)); user = kmalloc(sizeof(struct ksmbd_user), GFP_KERNEL); if (!user) return NULL; Loading @@ -40,7 +40,7 @@ struct ksmbd_user *ksmbd_alloc_user(struct ksmbd_login_response *resp) user->gid = resp->gid; user->uid = resp->uid; user->passkey_sz = resp->hash_sz; user->passkey = ksmbd_alloc(resp->hash_sz); user->passkey = kmalloc(resp->hash_sz, GFP_KERNEL); if (user->passkey) memcpy(user->passkey, resp->hash, resp->hash_sz); Loading
fs/cifsd/mgmt/user_session.c +2 −2 Original line number Diff line number Diff line Loading @@ -101,7 +101,7 @@ int ksmbd_session_rpc_open(struct ksmbd_session *sess, char *rpc_name) if (!method) return -EINVAL; entry = ksmbd_alloc(sizeof(struct ksmbd_session_rpc)); entry = kzalloc(sizeof(struct ksmbd_session_rpc), GFP_KERNEL); if (!entry) return -EINVAL; Loading Loading @@ -266,7 +266,7 @@ static struct ksmbd_session *__session_create(int protocol) struct ksmbd_session *sess; int ret; sess = ksmbd_alloc(sizeof(struct ksmbd_session)); sess = kzalloc(sizeof(struct ksmbd_session), GFP_KERNEL); if (!sess) return NULL; Loading
fs/cifsd/oplock.c +1 −1 Original line number Diff line number Diff line Loading @@ -593,7 +593,7 @@ static int oplock_break_pending(struct oplock_info *opinfo, int req_op_level) static inline int allocate_oplock_break_buf(struct ksmbd_work *work) { work->response_buf = ksmbd_alloc_response(MAX_CIFS_SMALL_BUFFER_SIZE); work->response_buf = kzalloc(MAX_CIFS_SMALL_BUFFER_SIZE, GFP_KERNEL); if (!work->response_buf) return -ENOMEM; work->response_sz = MAX_CIFS_SMALL_BUFFER_SIZE; Loading