aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/s390/char/vmcp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/s390/char/vmcp.c b/drivers/s390/char/vmcp.c
index 04e532eec032..19a14d9b80c1 100644
--- a/drivers/s390/char/vmcp.c
+++ b/drivers/s390/char/vmcp.c
@@ -47,7 +47,7 @@ static int vmcp_release(struct inode *inode, struct file *file)
47{ 47{
48 struct vmcp_session *session; 48 struct vmcp_session *session;
49 49
50 session = (struct vmcp_session *)file->private_data; 50 session = file->private_data;
51 file->private_data = NULL; 51 file->private_data = NULL;
52 free_pages((unsigned long)session->response, get_order(session->bufsize)); 52 free_pages((unsigned long)session->response, get_order(session->bufsize));
53 kfree(session); 53 kfree(session);
@@ -94,7 +94,7 @@ vmcp_write(struct file *file, const char __user *buff, size_t count,
94 return -EFAULT; 94 return -EFAULT;
95 } 95 }
96 cmd[count] = '\0'; 96 cmd[count] = '\0';
97 session = (struct vmcp_session *)file->private_data; 97 session = file->private_data;
98 if (mutex_lock_interruptible(&session->mutex)) { 98 if (mutex_lock_interruptible(&session->mutex)) {
99 kfree(cmd); 99 kfree(cmd);
100 return -ERESTARTSYS; 100 return -ERESTARTSYS;
@@ -136,7 +136,7 @@ static long vmcp_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
136 int __user *argp; 136 int __user *argp;
137 int temp; 137 int temp;
138 138
139 session = (struct vmcp_session *)file->private_data; 139 session = file->private_data;
140 if (is_compat_task()) 140 if (is_compat_task())
141 argp = compat_ptr(arg); 141 argp = compat_ptr(arg);
142 else 142 else