OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dfedfaf
)
Fix buggered kmalloc() call argument order
author
Al Viro
<viro@ftp.linux.org.uk>
Fri, 20 Jul 2007 15:03:40 +0000
(16:03 +0100)
committer
Linus Torvalds
<torvalds@woody.linux-foundation.org>
Fri, 20 Jul 2007 15:24:49 +0000
(08:24 -0700)
Wrong order of arguments
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/scsi/iscsi_tcp.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/iscsi_tcp.c
b/drivers/scsi/iscsi_tcp.c
index
aebcd5f
..
7829ab1
100644
(file)
--- 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;