summaryrefslogtreecommitdiffstats
path: root/drivers/s390/misc/chandev.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/s390/misc/chandev.c')
-rw-r--r--drivers/s390/misc/chandev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/misc/chandev.c b/drivers/s390/misc/chandev.c
index 4345f1211..f2b842e16 100644
--- a/drivers/s390/misc/chandev.c
+++ b/drivers/s390/misc/chandev.c
@@ -31,7 +31,7 @@ static int chandev_conf_read=FALSE;
static void *chandev_alloc_listmember(list **listhead,size_t size)
{
- void *newmember=kmalloc(GFP_KERNEL,size);
+ void *newmember=kmalloc(size, GFP_KERNEL);
if(newmember)
add_to_list(listhead,newmember);
return(newmember);