Skip to content

ALSA: Fix error handling order at probe error

Takashi Iwai alsa-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest39 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/39ALSA: galaxy: Fix the missing snd_card_free() call at probe errorsound/isa/galaxy/galaxy.c+6 -10 replies
2/39ALSA: sc6000: Fix the missing snd_card_free() call at probe errorsound/isa/sc6000.c+6 -10 replies
3/39ALSA: ad1889: Fix the missing snd_card_free() call at probe errorsound/pci/ad1889.c+8 -20 replies
4/39ALSA: ali5451: Fix the missing snd_card_free() call at probe errorsound/pci/ali5451/ali5451.c+8 -20 replies
5/39ALSA: als4000: Fix the missing snd_card_free() call at probe errorsound/pci/als4000.c+8 -20 replies
6/39ALSA: atiixp: Fix the missing snd_card_free() call at probe errorsound/pci/atiixp.c sound/pci/atiixp_modem.c+16 -40 replies
7/39ALSA: au88x0: Fix the missing snd_card_free() call at probe errorsound/pci/au88x0/au88x0.c+7 -10 replies
8/39ALSA: azt3328: Fix the missing snd_card_free() call at probe errorsound/pci/azt3328.c+7 -10 replies
9/39ALSA: ca0106: Fix the missing snd_card_free() call at probe errorsound/pci/ca0106/ca0106_main.c+8 -20 replies
10/39ALSA: cs4281: Fix the missing snd_card_free() call at probe errorsound/pci/cs4281.c+8 -20 replies
11/39ALSA: cs5535audio: Fix the missing snd_card_free() call at probe errorsound/pci/cs5535audio/cs5535audio.c+8 -20 replies
12/39ALSA: emu10k1x: Fix the missing snd_card_free() call at probe errorsound/pci/emu10k1/emu10k1x.c+8 -20 replies
13/39ALSA: ens137x: Fix the missing snd_card_free() call at probe errorsound/pci/ens1370.c+8 -20 replies
14/39ALSA: es1938: Fix the missing snd_card_free() call at probe errorsound/pci/es1938.c+8 -20 replies
15/39ALSA: es1968: Fix the missing snd_card_free() call at probe errorsound/pci/es1968.c+8 -20 replies
16/39ALSA: fm801: Fix the missing snd_card_free() call at probe errorsound/pci/fm801.c+8 -20 replies
17/39ALSA: ice1724: Fix the missing snd_card_free() call at probe errorsound/pci/ice1712/ice1724.c+8 -20 replies
18/39ALSA: intel8x0: Fix the missing snd_card_free() call at probe errorsound/pci/intel8x0.c sound/pci/intel8x0m.c+16 -40 replies
19/39ALSA: korg1212: Fix the missing snd_card_free() call at probe errorsound/pci/korg1212/korg1212.c+6 -20 replies
20/39ALSA: maestro3: Fix the missing snd_card_free() call at probe errorsound/pci/maestro3.c+7 -10 replies
21/39ALSA: riptide: Fix the missing snd_card_free() call at probe errorsound/pci/riptide/riptide.c+7 -10 replies
22/39ALSA: rme32: Fix the missing snd_card_free() call at probe errorsound/pci/rme32.c+7 -10 replies
23/39ALSA: rme96: Fix the missing snd_card_free() call at probe errorsound/pci/rme96.c+8 -20 replies
24/39ALSA: sonicvibes: Fix the missing snd_card_free() call at probe errorsound/pci/sonicvibes.c+8 -20 replies
25/39ALSA: via82xx: Fix the missing snd_card_free() call at probe errorsound/pci/via82xx.c sound/pci/via82xx_modem.c+16 -40 replies
26/39ALSA: intel_hdmi: Fix the missing snd_card_free() call at probe errorsound/x86/intel_hdmi_audio.c+6 -10 replies
27/39ALSA: sis7019: Fix the missing error handlingsound/pci/sis7019.c+10 -40 replies
28/39ALSA: bt87x: Fix the missing snd_card_free() call at probe errorsound/pci/bt87x.c+8 -20 replies
29/39ALSA: lola: Fix the missing snd_card_free() call at probe errorsound/pci/lola/lola.c+8 -20 replies
30/39ALSA: als300: Fix the missing snd_card_free() call at probe errorsound/pci/als300.c+6 -20 replies
31/39ALSA: aw2: Fix the missing snd_card_free() call at probe errorsound/pci/aw2/aw2-alsa.c+6 -20 replies
32/39ALSA: cmipci: Fix the missing snd_card_free() call at probe errorsound/pci/cmipci.c+6 -20 replies
33/39ALSA: lx6464es: Fix the missing snd_card_free() call at probe errorsound/pci/lx6464es/lx6464es.c+6 -20 replies
34/39ALSA: oxygen: Fix the missing snd_card_free() call at probe errorsound/pci/oxygen/oxygen_lib.c+11 -10 replies
35/39ALSA: hdsp: Fix the missing snd_card_free() call at probe errorsound/pci/rme9652/hdsp.c+6 -20 replies
36/39ALSA: hdspm: Fix the missing snd_card_free() call at probe errorsound/pci/rme9652/hdspm.c+6 -20 replies
37/39ALSA: rme9652: Fix the missing snd_card_free() call at probe errorsound/pci/rme9652/rme9652.c+6 -20 replies
38/39ALSA: mtpav: Don't call card private_free at probe error pathsound/drivers/mtpav.c+2 -20 replies
39/39ALSA: nm256: Don't call card private_free at probe error pathsound/pci/nm256/nm256.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/39] ALSA: Fix error handling order at probe error

Hi,

this is a bunch of additional fixes that are similar like the previous patch set for echoaudio but applied to other drivers that suffer from the very same issue -- the incorrect error handling order at the probe error.

Most of patches just follow the same strategy, the use of the new snd_card_free_on_error() helper while some few took just the manual snd_card_free() call and some with shuffling the private_free setup for avoiding the problem.

Takashi

===

Takashi Iwai (39):
ALSA: galaxy: Fix the missing snd_card_free() call at probe error
ALSA: sc6000: Fix the missing snd_card_free() call at probe error
ALSA: ad1889: Fix the missing snd_card_free() call at probe error
ALSA: ali5451: Fix the missing snd_card_free() call at probe error
ALSA: als4000: Fix the missing snd_card_free() call at probe error
ALSA: atiixp: Fix the missing snd_card_free() call at probe error
ALSA: au88x0: Fix the missing snd_card_free() call at probe error
ALSA: azt3328: Fix the missing snd_card_free() call at probe error
ALSA: ca0106: Fix the missing snd_card_free() call at probe error
ALSA: cs4281: Fix the missing snd_card_free() call at probe error
ALSA: cs5535audio: Fix the missing snd_card_free() call at probe error
ALSA: emu10k1x: Fix the missing snd_card_free() call at probe error
ALSA: ens137x: Fix the missing snd_card_free() call at probe error
ALSA: es1938: Fix the missing snd_card_free() call at probe error
ALSA: es1968: Fix the missing snd_card_free() call at probe error
ALSA: fm801: Fix the missing snd_card_free() call at probe error
ALSA: ice1724: Fix the missing snd_card_free() call at probe error
ALSA: intel8x0: Fix the missing snd_card_free() call at probe error
ALSA: korg1212: Fix the missing snd_card_free() call at probe error
ALSA: maestro3: Fix the missing snd_card_free() call at probe error
ALSA: riptide: Fix the missing snd_card_free() call at probe error
ALSA: rme32: Fix the missing snd_card_free() call at probe error
ALSA: rme96: Fix the missing snd_card_free() call at probe error
ALSA: sonicvibes: Fix the missing snd_card_free() call at probe error
ALSA: via82xx: Fix the missing snd_card_free() call at probe error
ALSA: intel_hdmi: Fix the missing snd_card_free() call at probe error
ALSA: sis7019: Fix the missing error handling
ALSA: bt87x: Fix the missing snd_card_free() call at probe error
ALSA: lola: Fix the missing snd_card_free() call at probe error
ALSA: als300: Fix the missing snd_card_free() call at probe error
ALSA: aw2: Fix the missing snd_card_free() call at probe error
ALSA: cmipci: Fix the missing snd_card_free() call at probe error
ALSA: lx6464es: Fix the missing snd_card_free() call at probe error
ALSA: oxygen: Fix the missing snd_card_free() call at probe error
ALSA: hdsp: Fix the missing snd_card_free() call at probe error
ALSA: hdspm: Fix the missing snd_card_free() call at probe error
ALSA: rme9652: Fix the missing snd_card_free() call at probe error
ALSA: mtpav: Don't call card private_free at probe error path
ALSA: nm256: Don't call card private_free at probe error path

 sound/drivers/mtpav.c               |  4 ++--
 sound/isa/galaxy/galaxy.c           |  7 ++++++-
 sound/isa/sc6000.c                  |  7 ++++++-
 sound/pci/ad1889.c                  | 10 ++++++++--
 sound/pci/ali5451/ali5451.c         | 10 ++++++++--
 sound/pci/als300.c                  |  8 ++++++--
 sound/pci/als4000.c                 | 10 ++++++++--
 sound/pci/atiixp.c                  | 10 ++++++++--
 sound/pci/atiixp_modem.c            | 10 ++++++++--
 sound/pci/au88x0/au88x0.c           |  8 +++++++-
 sound/pci/aw2/aw2-alsa.c            |  8 ++++++--
 sound/pci/azt3328.c                 |  8 +++++++-
 sound/pci/bt87x.c                   | 10 ++++++++--
 sound/pci/ca0106/ca0106_main.c      | 10 ++++++++--
 sound/pci/cmipci.c                  |  8 ++++++--
 sound/pci/cs4281.c                  | 10 ++++++++--
 sound/pci/cs5535audio/cs5535audio.c | 10 ++++++++--
 sound/pci/emu10k1/emu10k1x.c        | 10 ++++++++--
 sound/pci/ens1370.c                 | 10 ++++++++--
 sound/pci/es1938.c                  | 10 ++++++++--
 sound/pci/es1968.c                  | 10 ++++++++--
 sound/pci/fm801.c                   | 10 ++++++++--
 sound/pci/ice1712/ice1724.c         | 10 ++++++++--
 sound/pci/intel8x0.c                | 10 ++++++++--
 sound/pci/intel8x0m.c               | 10 ++++++++--
 sound/pci/korg1212/korg1212.c       |  8 ++++++--
 sound/pci/lola/lola.c               | 10 ++++++++--
 sound/pci/lx6464es/lx6464es.c       |  8 ++++++--
 sound/pci/maestro3.c                |  8 +++++++-
 sound/pci/nm256/nm256.c             |  2 +-
 sound/pci/oxygen/oxygen_lib.c       | 12 +++++++++++-
 sound/pci/riptide/riptide.c         |  8 +++++++-
 sound/pci/rme32.c                   |  8 +++++++-
 sound/pci/rme96.c                   | 10 ++++++++--
 sound/pci/rme9652/hdsp.c            |  8 ++++++--
 sound/pci/rme9652/hdspm.c           |  8 ++++++--
 sound/pci/rme9652/rme9652.c         |  8 ++++++--
 sound/pci/sis7019.c                 | 14 ++++++++++----
 sound/pci/sonicvibes.c              | 10 ++++++++--
 sound/pci/via82xx.c                 | 10 ++++++++--
 sound/pci/via82xx_modem.c           | 10 ++++++++--
 sound/x86/intel_hdmi_audio.c        |  7 ++++++-
 42 files changed, 301 insertions(+), 76 deletions(-)
Signature · 1 line
2.31.1