diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2006-02-21 03:28:10 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-02-21 05:00:11 +0100 |
commit | ec33b5fe1a6f68c0a494aab476b9667945e029c4 (patch) | |
tree | d3de877dabfbb378665d3d6541eacedf33e3b93d /drivers/fc4/fc.c | |
parent | [PATCH] mm/mempolicy.c: fix 'if ();' typo (diff) | |
download | linux-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/fc.c')
-rw-r--r-- | drivers/fc4/fc.c | 2 |
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); |