On Thu, Jan 17, 2019 at 09:31:49PM +, David Kozub wrote:
> -
> - memcpy(&cmd->cmd[cmd->pos], bytestring, len);
> + start = &cmd->cmd[cmd->pos];
> cmd->pos += len;
This is somewhat pendatic, but it helps me review patches if we keep things
together.
Since we're no longer doing th
From: Jonas Rabenstein
Split the header generation from the (normal) memcpy part if a
bytestring is copied into the command buffer. This allows in-place
generation of the bytestring content. For example, copy_from_user may be
used without an intermediate buffer.
Signed-off-by: Jonas Rabenstein
2 matches
Mail list logo