From 485f88aac4cdd2905309bbee45879ecb2cb1f2fe Mon Sep 17 00:00:00 2001 From: "Howard M. Harte" Date: Mon, 25 Jul 2011 17:19:49 -0700 Subject: [PATCH] Fix a potential crash/memory leak if NVRAM fails to load. Change-Id: I27f41dd5833835b74f38524e9691d68ac807c991 Signed-off-by: Howard M. Harte Signed-off-by: Dmitry Shmidt --- drivers/net/wireless/bcmdhd/dhd_sdio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/bcmdhd/dhd_sdio.c b/drivers/net/wireless/bcmdhd/dhd_sdio.c index 2dbb802..e57654b 100644 --- a/drivers/net/wireless/bcmdhd/dhd_sdio.c +++ b/drivers/net/wireless/bcmdhd/dhd_sdio.c @@ -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 */ -- 2.7.4