summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorbui duc phuc <phucduc.bui@gmail.com>2026-07-07 15:45:01 +0700
committerTakashi Iwai <tiwai@suse.de>2026-07-08 12:44:52 +0200
commitb45f4e8d787cfc667d38658da1b7ffb05c8b78a7 (patch)
treeadf62cacfee4a4fae2663a93387530903bac94cb /tools/perf/scripts/python/stackcollapse.py
parentbf08a5f698dcb8495efd94f14d863a8e6b123d25 (diff)
ALSA: control: Return -ENODEV instead of -EFAULT in snd_ctl_open()
When try_module_get() fails in snd_ctl_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 snd_card_file_add() failure). 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-2-phucduc.bui@gmail.com
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions