aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/surface/aggregator/ssh_parser.c
diff options
context:
space:
mode:
authorHelge Deller <[email protected]>2020-10-22 16:40:07 +0000
committerHelge Deller <[email protected]>2020-10-23 18:14:07 +0000
commit44a4c9e443674e6cd3368d3e642dfe9c429d5525 (patch)
treec5fd06a96b1b0a190434fdbf1ad91406c6871086 /drivers/platform/surface/aggregator/ssh_parser.c
parenthil/parisc: Disable HIL driver when it gets stuck (diff)
downloadkernel-44a4c9e443674e6cd3368d3e642dfe9c429d5525.tar.gz
kernel-44a4c9e443674e6cd3368d3e642dfe9c429d5525.zip
parisc: Add wrapper syscalls to fix O_NONBLOCK flag usage
The commit 75ae04206a4d ("parisc: Define O_NONBLOCK to become 000200000") changed the O_NONBLOCK constant to have only one bit set (like all other architectures). This change broke some existing userspace code (e.g. udevadm, systemd-udevd, elogind) which called specific syscalls which do strict value checking on their flag parameter. This patch adds wrapper functions for the relevant syscalls. The wrappers masks out any old invalid O_NONBLOCK flags, reports in the syslog if the old O_NONBLOCK value was used and then calls the target syscall with the new O_NONBLOCK value. Fixes: 75ae04206a4d ("parisc: Define O_NONBLOCK to become 000200000") Signed-off-by: Helge Deller <[email protected]> Tested-by: Meelis Roos <[email protected]> Tested-by: Jeroen Roovers <[email protected]>
Diffstat (limited to 'drivers/platform/surface/aggregator/ssh_parser.c')
0 files changed, 0 insertions, 0 deletions