summaryrefslogtreecommitdiffstats
path: root/drivers/fc4
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2006-02-21 03:28:10 +0100
committerLinus Torvalds <torvalds@g5.osdl.org>2006-02-21 05:00:11 +0100
commitec33b5fe1a6f68c0a494aab476b9667945e029c4 (patch)
treed3de877dabfbb378665d3d6541eacedf33e3b93d /drivers/fc4
parent[PATCH] mm/mempolicy.c: fix 'if ();' typo (diff)
downloadlinux-ec33b5fe1a6f68c0a494aab476b9667945e029c4.tar.xz
linux-ec33b5fe1a6f68c0a494aab476b9667945e029c4.zip
[PATCH] drivers/fc4/fc.c: memset correct length
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/fc4')
-rw-r--r--drivers/fc4/fc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/fc4/fc.c b/drivers/fc4/fc.c
index 5c8943509cc1..66d03f242d3c 100644
--- a/drivers/fc4/fc.c
+++ b/drivers/fc4/fc.c
@@ -1053,7 +1053,7 @@ static int fc_do_els(fc_channel *fc, unsigned int alpa, void *data, int len)
int i;
fcmd = &_fcmd;
- memset(fcmd, 0, sizeof(fcmd));
+ memset(fcmd, 0, sizeof(fcp_cmnd));
FCD(("PLOGI SID %d DID %d\n", fc->sid, alpa))
fch = &fcmd->fch;
FILL_FCHDR_RCTL_DID(fch, R_CTL_ELS_REQ, alpa);