diff options
| author | Johan Hovold <[email protected]> | 2021-04-07 12:23:21 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2021-04-07 17:22:06 +0200 |
| commit | a7eaaa9d1032e68669bb479496087ba8fc155ab6 (patch) | |
| tree | eb9c971260acdd01370ddda413b434afc827aa04 /tools/perf/scripts/python/flamegraph.py | |
| parent | 2104eb283df66a482b60254299acbe3c68c03412 (diff) | |
staging: fwserial: fix TIOCSSERIAL implementation
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 fwserial implementation which was returning -EPERM also for a
privileged user when trying to change certain unsupported parameters,
and instead return success consistently.
Fixes: 7355ba3445f2 ("staging: fwserial: Add TTY-over-Firewire serial driver")
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/flamegraph.py')
0 files changed, 0 insertions, 0 deletions