Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

[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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;