Skip to content

Commit

Permalink
[PATCH] s390: use __cpcmd in vmcp_write
Browse files Browse the repository at this point in the history
vmcp_write uses GPF_DMA for the memory allocation of the response buffer, so
it can use the low level function __cpcmd directly, no need to call the
wrapper.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Christian Borntraeger authored and Linus Torvalds committed Jul 27, 2005
1 parent 8ffa740 commit 3e5ea09
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/s390/char/vmcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ vmcp_write(struct file *file, const char __user * buff, size_t count,
return -ENOMEM;
}
debug_text_event(vmcp_debug, 1, cmd);
session->resp_size = cpcmd(cmd, session->response,
session->bufsize,
&session->resp_code);
session->resp_size = __cpcmd(cmd, session->response,
session->bufsize,
&session->resp_code);
up(&session->mutex);
kfree(cmd);
*ppos = 0; /* reset the file pointer after a command */
Expand Down

0 comments on commit 3e5ea09

Please sign in to comment.