diff options
Diffstat (limited to 'fs/coda/psdev.c')
-rw-r--r-- | fs/coda/psdev.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/coda/psdev.c b/fs/coda/psdev.c index f74296acc59e..3ac22a2b97e2 100644 --- a/fs/coda/psdev.c +++ b/fs/coda/psdev.c | |||
@@ -129,7 +129,7 @@ static ssize_t coda_psdev_write(struct file *file, const char __user *buf, | |||
129 | goto out; | 129 | goto out; |
130 | } | 130 | } |
131 | if (copy_from_user(dcbuf, buf, nbytes)) { | 131 | if (copy_from_user(dcbuf, buf, nbytes)) { |
132 | CODA_FREE(dcbuf, nbytes); | 132 | kvfree(dcbuf); |
133 | retval = -EFAULT; | 133 | retval = -EFAULT; |
134 | goto out; | 134 | goto out; |
135 | } | 135 | } |
@@ -137,7 +137,7 @@ static ssize_t coda_psdev_write(struct file *file, const char __user *buf, | |||
137 | /* what downcall errors does Venus handle ? */ | 137 | /* what downcall errors does Venus handle ? */ |
138 | error = coda_downcall(vcp, hdr.opcode, dcbuf, nbytes); | 138 | error = coda_downcall(vcp, hdr.opcode, dcbuf, nbytes); |
139 | 139 | ||
140 | CODA_FREE(dcbuf, nbytes); | 140 | kvfree(dcbuf); |
141 | if (error) { | 141 | if (error) { |
142 | pr_warn("%s: coda_downcall error: %d\n", | 142 | pr_warn("%s: coda_downcall error: %d\n", |
143 | __func__, error); | 143 | __func__, error); |
@@ -263,7 +263,7 @@ static ssize_t coda_psdev_read(struct file * file, char __user * buf, | |||
263 | goto out; | 263 | goto out; |
264 | } | 264 | } |
265 | 265 | ||
266 | CODA_FREE(req->uc_data, sizeof(struct coda_in_hdr)); | 266 | kvfree(req->uc_data); |
267 | kfree(req); | 267 | kfree(req); |
268 | out: | 268 | out: |
269 | mutex_unlock(&vcp->vc_mutex); | 269 | mutex_unlock(&vcp->vc_mutex); |
@@ -325,7 +325,7 @@ static int coda_psdev_release(struct inode * inode, struct file * file) | |||
325 | 325 | ||
326 | /* Async requests need to be freed here */ | 326 | /* Async requests need to be freed here */ |
327 | if (req->uc_flags & CODA_REQ_ASYNC) { | 327 | if (req->uc_flags & CODA_REQ_ASYNC) { |
328 | CODA_FREE(req->uc_data, sizeof(struct coda_in_hdr)); | 328 | kvfree(req->uc_data); |
329 | kfree(req); | 329 | kfree(req); |
330 | continue; | 330 | continue; |
331 | } | 331 | } |