• Andrew Morton's avatar
    [PATCH] fix oops in emu10k1_wavein_open() error recovery · 1cd4dae0
    Andrew Morton authored
    If a large pci_alloc_consistent() GFP_ATOMIC allocation fails this driver's
    recovery code will call emu10k1_wavein_close() far earlier than it should: it
    goes splat in emu10k1_timer_uninstall().
    
    Fix it by simply removing that call: we haven't allocated any resources yet
    anyway.
    
    Note that one of the callers of emu10k1_wavein_open(), emu10k1_audio_read()
    will sit there stupidly retrying the open.  But it has a sleep in there so
    something might eventually give way.
    1cd4dae0
cardwi.c 9.3 KB