summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro <viro@ftp.linux.org.uk>2007-07-20 17:03:40 +0200
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-20 17:24:49 +0200
commita9204879b4242c2bed3a172399906acd371a8081 (patch)
tree7f7e177e585c9a472e0a4ad0bcebbcd74f1a2746
parentm68k: exclude more unbuildable drivers (diff)
downloadlinux-a9204879b4242c2bed3a172399906acd371a8081.tar.xz
linux-a9204879b4242c2bed3a172399906acd371a8081.zip
Fix buggered kmalloc() call argument order
Wrong order of arguments Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r--drivers/scsi/iscsi_tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/iscsi_tcp.c b/drivers/scsi/iscsi_tcp.c
index aebcd5fcdc55..7829ab1e2fb4 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;