diff options
author | Andy Shevchenko <[email protected]> | 2023-08-17 12:12:21 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2023-08-22 16:57:32 +0200 |
commit | d21fdd07cea418c0d98c8a15fc95b8b8970801e7 (patch) | |
tree | 192ce8fea3ec101507a6479403ed12039eddff71 /tools/perf/util/trace-event-scripting.c | |
parent | 1b28cb81dab7c1eedc6034206f4e8d644046ad31 (diff) |
driver core: Return proper error code when dev_set_name() fails
Whe device_add() tries to assign a device name with help of
dev_set_name() the error path explicitly uses -EINVAL, while
the function may return something different.
Signed-off-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions