diff options
author | Yitchak Gertner <gertner@broadcom.com> | 2008-08-13 18:53:12 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-08-13 19:03:41 -0400 |
commit | 353029896a5ed6cf42f4ce45729851b23c94d874 (patch) | |
tree | 6a2a3ece951d9d1751240357c153cde3467fa4c0 /drivers/net/bnx2x_main.c | |
parent | 72ce58c328d7131d96280135f8be858603522911 (diff) |
bnx2x: Wrong structure size
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 <gertner@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x_main.c')
-rw-r--r-- | drivers/net/bnx2x_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/bnx2x_main.c b/drivers/net/bnx2x_main.c index 03218705f513..6fe19726ae43 100644 --- 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) | |||
3985 | 3985 | ||
3986 | bnx2x_init_fill(bp, BAR_USTRORM_INTMEM + | 3986 | bnx2x_init_fill(bp, BAR_USTRORM_INTMEM + |
3987 | USTORM_SB_HOST_STATUS_BLOCK_OFFSET(port, sb_id), 0, | 3987 | USTORM_SB_HOST_STATUS_BLOCK_OFFSET(port, sb_id), 0, |
3988 | sizeof(struct ustorm_def_status_block)/4); | 3988 | sizeof(struct ustorm_status_block)/4); |
3989 | bnx2x_init_fill(bp, BAR_CSTRORM_INTMEM + | 3989 | bnx2x_init_fill(bp, BAR_CSTRORM_INTMEM + |
3990 | CSTORM_SB_HOST_STATUS_BLOCK_OFFSET(port, sb_id), 0, | 3990 | CSTORM_SB_HOST_STATUS_BLOCK_OFFSET(port, sb_id), 0, |
3991 | sizeof(struct cstorm_def_status_block)/4); | 3991 | sizeof(struct cstorm_status_block)/4); |
3992 | } | 3992 | } |
3993 | 3993 | ||
3994 | static void bnx2x_init_sb(struct bnx2x *bp, struct host_status_block *sb, | 3994 | static void bnx2x_init_sb(struct bnx2x *bp, struct host_status_block *sb, |