Ticket #1072: ath_hardstart_crash_fix.2.diff

File ath_hardstart_crash_fix.2.diff, 0.5 kB (added by rozteck@interia.pl, 5 years ago)

This patch prevents ath_hardstart function from calling ath_ffstageq_flush with NULL parameter causing crash. Signed-off-by: Tomasz Rostanski <rozteck@interia.pl>

  • madwifi-svn-r1860/ath/if_ath.c

    old new  
    27572771         * flush out stale FF from staging Q for applicable operational modes. 
    27582772         */ 
    27592773        /* XXX: ADHOC mode too? */ 
    2760         if (txq && ic->ic_opmode == IEEE80211_M_HOSTAP
     2774        if ((ic != NULL) && (txq) && (ic->ic_opmode == IEEE80211_M_HOSTAP)
    27612775                ath_ffstageq_flush(sc, txq, ath_ff_ageflushtestdone); 
    27622776#endif 
    27632777