Skip to content

Commit

Permalink
sunhme: Uninitialized variable in happy_meal_init()
Browse files Browse the repository at this point in the history
The "burst" string is only initialized for CONFIG_SPARC.  It should be
set to "64" because that's what is used by PCI.

Fixes: 24cddbc ("sunhme: Combine continued messages")
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: Sean Anderson <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Dan Carpenter authored and davem330 committed Oct 15, 2022
1 parent bdee15e commit 9408f3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/sun/sunhme.c
Original file line number Diff line number Diff line change
Expand Up @@ -1328,7 +1328,7 @@ static int happy_meal_init(struct happy_meal *hp)
void __iomem *erxregs = hp->erxregs;
void __iomem *bregs = hp->bigmacregs;
void __iomem *tregs = hp->tcvregs;
const char *bursts;
const char *bursts = "64";
u32 regtmp, rxcfg;

/* If auto-negotiation timer is running, kill it. */
Expand Down

0 comments on commit 9408f3d

Please sign in to comment.