diff options
| author | bui duc phuc <phucduc.bui@gmail.com> | 2026-07-07 15:45:06 +0700 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2026-07-08 12:44:52 +0200 |
| commit | a0a47b0ae2d8f24db465a3e3d69e237e69cd7d09 (patch) | |
| tree | 6db7e1640fa74caf01e83d14b2d453234cf3b2c5 /tools/perf/scripts/python/bin | |
| parent | d9468d5286c1b6483bcaa0e89d9b2862941f3387 (diff) | |
ALSA: pcm: Return -ENODEV instead of -EFAULT in snd_pcm_open()
When try_module_get() fails in snd_pcm_open(), the owning module is going
away and the device is no longer usable, so -EFAULT ("bad address") is the
wrong error. Return -ENODEV, matching the other unavailable-device paths
in this function(the NULL pcm check and the card->shutdown check).
This changes the errno reported to userspace on this rare race.
No other behaviour changes.
Signed-off-by: bui duc phuc <phucduc.bui@gmail.com>
Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20260707084506.718583-7-phucduc.bui@gmail.com
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
