projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72ce58c
)
bnx2x: Wrong structure size
author
Yitchak Gertner
<
[email protected]
>
Wed, 13 Aug 2008 22:53:12 +0000
(15:53 -0700)
committer
David S. Miller
<
[email protected]
>
Wed, 13 Aug 2008 23:03:41 +0000
(16:03 -0700)
Wrong structure size
The wrong structure was used in the sizeof to clear (luckily both
structures have the same size in this version...)
Signed-off-by: Yitchak Gertner <
[email protected]
>
Signed-off-by: Eilon Greenstein <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/bnx2x_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/bnx2x_main.c
b/drivers/net/bnx2x_main.c
index 03218705f513a639e58df9fe97c3b7c262d16843..6fe19726ae43193046da99635ddc64b8fa10653c 100644
(file)
--- a/
drivers/net/bnx2x_main.c
+++ b/
drivers/net/bnx2x_main.c
@@
-3985,10
+3985,10
@@
static void bnx2x_zero_sb(struct bnx2x *bp, int sb_id)
bnx2x_init_fill(bp, BAR_USTRORM_INTMEM +
USTORM_SB_HOST_STATUS_BLOCK_OFFSET(port, sb_id), 0,
- sizeof(struct ustorm_
def_
status_block)/4);
+ sizeof(struct ustorm_status_block)/4);
bnx2x_init_fill(bp, BAR_CSTRORM_INTMEM +
CSTORM_SB_HOST_STATUS_BLOCK_OFFSET(port, sb_id), 0,
- sizeof(struct cstorm_
def_
status_block)/4);
+ sizeof(struct cstorm_status_block)/4);
}
static void bnx2x_init_sb(struct bnx2x *bp, struct host_status_block *sb,