From: Al Viro Date: Fri, 20 Jul 2007 15:03:40 +0000 (+0100) Subject: [SCSI] iscsi_tcp: buggered kmalloc() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e7cbff13ec1f236a3f8341c503a2e1bd0cf692e5;p=linux-beck.git [SCSI] iscsi_tcp: buggered kmalloc() Signed-off-by: Al Viro Cc: Mike Christie Signed-off-by: James Bottomley --- 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;