Fix buggered kmalloc() call argument order
authorAl Viro <[email protected]>
Fri, 20 Jul 2007 15:03:40 +0000 (16:03 +0100)
committerLinus Torvalds <[email protected]>
Fri, 20 Jul 2007 15:24:49 +0000 (08:24 -0700)
Wrong order of arguments

Signed-off-by: Al Viro <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/scsi/iscsi_tcp.c

index aebcd5fcdc5518e012bf0ff425616ffcb7cd8cfe..7829ab1e2fb46d5bf350c9c6d54d0ff9dec4a01a 100644 (file)
@@ -1885,7 +1885,7 @@ static int iscsi_tcp_get_addr(struct iscsi_conn *conn, struct socket *sock,
        struct sockaddr_in *sin;
        int rc = 0, len;
 
-       addr = kmalloc(GFP_KERNEL, sizeof(*addr));
+       addr = kmalloc(sizeof(*addr), GFP_KERNEL);
        if (!addr)
                return -ENOMEM;