From: Alexey Dobriyan Date: Tue, 21 Feb 2006 02:28:10 +0000 (-0800) Subject: [PATCH] drivers/fc4/fc.c: memset correct length X-Git-Tag: v2.6.16-rc5~81 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec33b5fe1a6f68c0a494aab476b9667945e029c4;p=linux-2.6 [PATCH] drivers/fc4/fc.c: memset correct length Signed-off-by: Alexey Dobriyan Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/fc4/fc.c b/drivers/fc4/fc.c index 5c8943509c..66d03f242d 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);