Commit e7cbff13 authored by Al Viro's avatar Al Viro Committed by James Bottomley

[SCSI] iscsi_tcp: buggered kmalloc()

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Cc: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 6585c1b3
...@@ -1885,7 +1885,7 @@ static int iscsi_tcp_get_addr(struct iscsi_conn *conn, struct socket *sock, ...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment