Skip to content

Commit

Permalink
[PATCH] drivers/fc4/fc.c: memset correct length
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Dobriyan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Alexey Dobriyan authored and Linus Torvalds committed Feb 21, 2006
1 parent fcab6f3 commit ec33b5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/fc4/fc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ec33b5f

Please sign in to comment.