Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193932
b: refs/heads/master
c: 22dfaa8
h: refs/heads/master
v: v3
  • Loading branch information
Amit Kumar Salecha authored and David S. Miller committed Apr 3, 2010
1 parent f811789 commit 73bc0ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 34ce36268331719894c4b237a9413fe9e1ab4f75
refs/heads/master: 22dfaa86e90235b9e5ea014be4268f457c72a63c
8 changes: 4 additions & 4 deletions trunk/drivers/net/qlcnic/qlcnic_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ qlcnic_validate_bootld(struct qlcnic_adapter *adapter)
return -EINVAL;

tab_size = cpu_to_le32(tab_desc->findex) +
(cpu_to_le32(tab_desc->entry_size * (idx + 1)));
(cpu_to_le32(tab_desc->entry_size) * (idx + 1));

if (adapter->fw->size < tab_size)
return -EINVAL;
Expand All @@ -636,7 +636,7 @@ qlcnic_validate_bootld(struct qlcnic_adapter *adapter)
(cpu_to_le32(tab_desc->entry_size) * (idx));
descr = (struct uni_data_desc *)&unirom[offs];

data_size = descr->findex + cpu_to_le32(descr->size);
data_size = cpu_to_le32(descr->findex) + cpu_to_le32(descr->size);

if (adapter->fw->size < data_size)
return -EINVAL;
Expand All @@ -662,15 +662,15 @@ qlcnic_validate_fw(struct qlcnic_adapter *adapter)
return -EINVAL;

tab_size = cpu_to_le32(tab_desc->findex) +
(cpu_to_le32(tab_desc->entry_size * (idx + 1)));
(cpu_to_le32(tab_desc->entry_size) * (idx + 1));

if (adapter->fw->size < tab_size)
return -EINVAL;

offs = cpu_to_le32(tab_desc->findex) +
(cpu_to_le32(tab_desc->entry_size) * (idx));
descr = (struct uni_data_desc *)&unirom[offs];
data_size = descr->findex + cpu_to_le32(descr->size);
data_size = cpu_to_le32(descr->findex) + cpu_to_le32(descr->size);

if (adapter->fw->size < data_size)
return -EINVAL;
Expand Down

0 comments on commit 73bc0ad

Please sign in to comment.