forked from Minki/linux
[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>
This commit is contained in:
parent
fcab6f3513
commit
ec33b5fe1a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user