From: Alexey Dobriyan Date: Tue, 21 Feb 2006 02:28:10 +0000 (-0800) Subject: [PATCH] drivers/fc4/fc.c: memset correct length X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=ec33b5fe1a6f68c0a494aab476b9667945e029c4;p=openwrt%2Fstaging%2Fblogic.git [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 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);