summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorbui duc phuc <phucduc.bui@gmail.com>2026-07-07 15:45:04 +0700
committerTakashi Iwai <tiwai@suse.de>2026-07-08 12:44:52 +0200
commitfb0fb4b94362a89da605058269bceb481a5e60b6 (patch)
tree67eb5b4e9c1c5c0d949d85e6e1dabc842ed03884 /tools/perf/scripts/python/bin
parent52f15bf51b6c61f03c51e9acfa38145ee6c7c07a (diff)
ALSA: mixer: oss: Return -ENODEV instead of -EFAULT in snd_mixer_oss_open()
When try_module_get() fails in snd_mixer_oss_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 card check and the NULL mixer_oss 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-5-phucduc.bui@gmail.com
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions