Commit 5fb4869e authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[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: default avatarAl Viro <viro@parcelfarce.linux.theplanet.co.uk>
parent 1dbd4652
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment