Lines Matching defs:msg
87 kfree(msg_ctx->msg);
88 msg_ctx->msg = NULL;
185 * @msg: The ecryptfs message received; the caller should sanity check
186 * msg->data_len and free the memory
206 struct ecryptfs_message *msg, u32 seq)
212 if (msg->index >= ecryptfs_message_buf_len) {
216 "allowable is [%d]\n", __func__, msg->index,
220 msg_ctx = &ecryptfs_msg_ctx_arr[msg->index];
234 msg_size = (sizeof(*msg) + msg->data_len);
235 msg_ctx->msg = kmemdup(msg, msg_size, GFP_KERNEL);
236 if (!msg_ctx->msg) {
316 * @msg: The incoming message from userspace; not set if rc != 0
320 * returned, msg will point to a valid message from userspace; a
322 * error occurs. Callee must free @msg on success.
325 struct ecryptfs_message **msg)
342 *msg = msg_ctx->msg;
343 msg_ctx->msg = NULL;
398 ecryptfs_msg_ctx_arr[i].msg = NULL;
419 kfree(ecryptfs_msg_ctx_arr[i].msg);