1 From: George Kashperko <george@znau.edu.ua>
3 Release nvram variables buffer.
4 Prevent block reserved by alloc_etherdev from being freed.
5 Signed-off-by: George Kashperko <george@znau.edu.ua>
10 @@ -647,7 +647,10 @@ si_detach(si_t *sih)
11 #if !defined(BCMBUSTYPE) || (BCMBUSTYPE == SI_BUS)
13 #endif /* !BCMBUSTYPE || (BCMBUSTYPE == SI_BUS) */
14 - MFREE(sii->osh, sii, sizeof(si_info_t));
16 + MFREE(sii->osh, sii, sizeof(si_info_t));
17 + nvram_exit((void *)&(sii->pub));
22 --- a/driver/wl_linux.c
23 +++ b/driver/wl_linux.c
24 @@ -1477,7 +1477,6 @@ wl_free_if(wl_info_t *wl, wl_if_t *wlif)
25 free_netdev(wlif->dev);
28 - MFREE(wl->osh, wlif, sizeof(wl_if_t));