lkml.org 
[lkml]   [2011]   [Dec]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[02/16] ALSA: hda/realtek - Fix Oops in alc_mux_select()
    2.6.32-longterm review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Takashi Iwai <tiwai@suse.de>

    commit cce4aa378a049f4275416ee6302dd24f37b289df upstream.

    When no imux is available (e.g. a single capture source),
    alc_auto_init_input_src() may trigger an Oops due to the access to -1.
    Add a proper zero-check to avoid it.

    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    sound/pci/hda/patch_realtek.c | 2 ++
    1 file changed, 2 insertions(+)

    --- a/sound/pci/hda/patch_realtek.c
    +++ b/sound/pci/hda/patch_realtek.c
    @@ -432,6 +432,8 @@ static int alc_mux_enum_put(struct snd_k
    imux = &spec->input_mux[mux_idx];
    if (!imux->num_items && mux_idx > 0)
    imux = &spec->input_mux[0];
    + if (!imux->num_items)
    + return 0;

    type = get_wcaps_type(get_wcaps(codec, nid));
    if (type == AC_WID_AUD_MIX) {



    \
     
     \ /
      Last update: 2011-12-16 21:55    [W:0.022 / U:60.040 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site