Fix a potential crash/memory leak if NVRAM fails to load.
authorHoward M. Harte <hharte@broadcom.com>
Tue, 26 Jul 2011 00:19:49 +0000 (17:19 -0700)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:22:02 +0000 (12:22 -0800)
Change-Id: I27f41dd5833835b74f38524e9691d68ac807c991
Signed-off-by: Howard M. Harte <hharte@broadcom.com>
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
drivers/net/wireless/bcmdhd/dhd_sdio.c

index 2dbb802..e57654b 100644 (file)
@@ -6067,6 +6067,7 @@ _dhdsdio_download_firmware(struct dhd_bus *bus)
        /* External nvram takes precedence if specified */
        if (dhdsdio_download_nvram(bus)) {
                DHD_ERROR(("%s: dongle nvram file download failed\n", __FUNCTION__));
+               goto err;
        }
 
        /* Take arm out of reset */