sunhme: Uninitialized variable in happy_meal_init()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 14 Oct 2022 14:33:02 +0000 (17:33 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 15 Oct 2022 10:14:24 +0000 (11:14 +0100)
The "burst" string is only initialized for CONFIG_SPARC.  It should be
set to "64" because that's what is used by PCI.

Fixes: 24cddbc3ef11 ("sunhme: Combine continued messages")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Sean Anderson <seanga2@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sun/sunhme.c

index 91f10f746dffdf446586adc35a0c23413c2561ea..1c16548415cddabf7f07fe7ad0b0fa97228c6cdb 100644 (file)
@@ -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. */