diff options
| author | Johan Hovold <[email protected]> | 2021-04-07 12:23:24 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2021-04-07 17:22:07 +0200 |
| commit | 60c6b305c11b5fd167ce5e2ce42f3a9098c388f0 (patch) | |
| tree | 94260cd50e38b0602ab8ba7b2a85536d2eb1e927 /tools/perf/scripts/python | |
| parent | b71e571adaa58be4fd289abebc8997e05b4c6b40 (diff) | |
staging: greybus: uart: fix unprivileged TIOCCSERIAL
TIOCSSERIAL is a horrid, underspecified, legacy interface which for most
serial devices is only useful for setting the close_delay and
closing_wait parameters.
A non-privileged user has only ever been able to set the since long
deprecated ASYNC_SPD flags and trying to change any other *supported*
feature should result in -EPERM being returned. Setting the current
values for any supported features should return success.
Fix the greybus implementation which instead indicated that the
TIOCSSERIAL ioctl was not even implemented when a non-privileged user
set the current values.
Fixes: e68453ed28c5 ("greybus: uart-gb: now builds, more framework added")
Signed-off-by: Johan Hovold <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions