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>
This commit is contained in:
Al Viro 2007-07-20 16:03:40 +01:00 committed by Linus Torvalds
parent dfedfaf55a
commit a9204879b4

View File

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