Lines Matching defs:msg
87 kfree(msg_ctx->msg);
88 msg_ctx->msg = NULL;
186 * @msg: The ecryptfs message received; the caller should sanity check
187 * msg->data_len and free the memory
207 struct ecryptfs_message *msg, u32 seq)
213 if (msg->index >= ecryptfs_message_buf_len) {
217 "allowable is [%d]\n", __func__, msg->index,
221 msg_ctx = &ecryptfs_msg_ctx_arr[msg->index];
235 msg_size = (sizeof(*msg) + msg->data_len);
236 msg_ctx->msg = kmemdup(msg, msg_size, GFP_KERNEL);
237 if (!msg_ctx->msg) {
318 * @msg: The incoming message from userspace; not set if rc != 0
322 * returned, msg will point to a valid message from userspace; a
324 * error occurs. Callee must free @msg on success.
327 struct ecryptfs_message **msg)
344 *msg = msg_ctx->msg;
345 msg_ctx->msg = NULL;
398 ecryptfs_msg_ctx_arr[i].msg = NULL;
419 kfree(ecryptfs_msg_ctx_arr[i].msg);