aboutsummaryrefslogtreecommitdiffstats
path: root/fs/coda/psdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/coda/psdev.c')
-rw-r--r--fs/coda/psdev.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/coda/psdev.c b/fs/coda/psdev.c
index 6818c20372ca..8a09f19596db 100644
--- a/fs/coda/psdev.c
+++ b/fs/coda/psdev.c
@@ -49,8 +49,6 @@
49 49
50#include "coda_int.h" 50#include "coda_int.h"
51 51
52#define upc_free(r) kfree(r)
53
54/* statistics */ 52/* statistics */
55int coda_hard; /* allows signals during upcalls */ 53int coda_hard; /* allows signals during upcalls */
56unsigned long coda_timeout = 30; /* .. secs, then signals will dequeue */ 54unsigned long coda_timeout = 30; /* .. secs, then signals will dequeue */
@@ -264,7 +262,7 @@ static ssize_t coda_psdev_read(struct file * file, char __user * buf,
264 } 262 }
265 263
266 CODA_FREE(req->uc_data, sizeof(struct coda_in_hdr)); 264 CODA_FREE(req->uc_data, sizeof(struct coda_in_hdr));
267 upc_free(req); 265 kfree(req);
268out: 266out:
269 unlock_kernel(); 267 unlock_kernel();
270 return (count ? count : retval); 268 return (count ? count : retval);
@@ -320,7 +318,7 @@ static int coda_psdev_release(struct inode * inode, struct file * file)
320 /* Async requests need to be freed here */ 318 /* Async requests need to be freed here */
321 if (req->uc_flags & REQ_ASYNC) { 319 if (req->uc_flags & REQ_ASYNC) {
322 CODA_FREE(req->uc_data, sizeof(struct coda_in_hdr)); 320 CODA_FREE(req->uc_data, sizeof(struct coda_in_hdr));
323 upc_free(req); 321 kfree(req);
324 continue; 322 continue;
325 } 323 }
326 req->uc_flags |= REQ_ABORT; 324 req->uc_flags |= REQ_ABORT;