From: Al Viro Date: Fri, 20 Jul 2007 15:03:40 +0000 (+0100) Subject: Fix buggered kmalloc() call argument order X-Git-Tag: v2.6.23-rc1~236 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a9204879b4242c2bed3a172399906acd371a8081;p=linux-2.6-omap-h63xx.git Fix buggered kmalloc() call argument order Wrong order of arguments Signed-off-by: Al Viro Signed-off-by: Linus Torvalds --- diff --git a/drivers/scsi/iscsi_tcp.c b/drivers/scsi/iscsi_tcp.c index aebcd5fcdc5..7829ab1e2fb 100644 --- a/drivers/scsi/iscsi_tcp.c +++ b/drivers/scsi/iscsi_tcp.c @@ -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;