diff options
| author | bui duc phuc <phucduc.bui@gmail.com> | 2026-07-07 15:45:03 +0700 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2026-07-08 12:44:52 +0200 |
| commit | 52f15bf51b6c61f03c51e9acfa38145ee6c7c07a (patch) | |
| tree | 9fb54747ce531fbf773c9abe84d64a79b62c00d0 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | c49e88ea6cee4454c4bd849ac5e8abd2f6a7ac26 (diff) | |
ALSA: info: Return -ENODEV instead of -EFAULT in alloc_info_private()
When try_module_get() fails in alloc_info_private(), 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 -ENODEV path in the
same function.
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-4-phucduc.bui@gmail.com
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
