Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Viro <viro@parcelfarce.linux.theplanet.co.uk>2005-02-11 02:15:08 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-02-11 02:15:08 -0800
commit5fb4869ea3b84aa748c325f2ecb7c28c82145fe4 (patch)
tree05fadc5faa215253d983b278092393031dc4710c
parent1dbd4652aedfc6e0a77b431bb27fb3713eba6338 (diff)
[PATCH] megaraid_mbox fix
wrong order of arguments in memset(). This, BTW, shows why cross-builds are useful - the only indication of problem had been a new warning showing up in sparse output on alpha build (number exceeding 256 got truncated). Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
-rw-r--r--drivers/scsi/megaraid/megaraid_mbox.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/megaraid/megaraid_mbox.c b/drivers/scsi/megaraid/megaraid_mbox.c
index ccb1b7fb05a9..138fa4815833 100644
--- a/drivers/scsi/megaraid/megaraid_mbox.c
+++ b/drivers/scsi/megaraid/megaraid_mbox.c
@@ -4100,9 +4100,9 @@ megaraid_sysfs_get_ldmap(adapter_t *adapter)
mbox64 = raid_dev->sysfs_mbox64;
ldmap = raid_dev->sysfs_buffer;
- memset(uioc, sizeof(uioc_t), 0);
- memset(mbox64, sizeof(mbox64_t), 0);
- memset(ldmap, sizeof(raid_dev->curr_ldmap), 0);
+ memset(uioc, 0, sizeof(uioc_t));
+ memset(mbox64, 0, sizeof(mbox64_t));
+ memset(ldmap, 0, sizeof(raid_dev->curr_ldmap));
mbox = &mbox64->mbox32;
raw_mbox = (char *)mbox;