diff options
Diffstat (limited to 'drivers/char/riscom8.c')
-rw-r--r-- | drivers/char/riscom8.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/riscom8.c b/drivers/char/riscom8.c index bed251b19..b854fa338 100644 --- a/drivers/char/riscom8.c +++ b/drivers/char/riscom8.c @@ -1447,7 +1447,7 @@ extern inline int rc_set_serial_info(struct riscom_port * port, change_speed = ((port->flags & ASYNC_SPD_MASK) != (tmp.flags & ASYNC_SPD_MASK)); - if (!suser()) { + if (!capable(CAP_SYS_ADMIN)) { if ((tmp.close_delay != port->close_delay) || (tmp.closing_wait != port->closing_wait) || ((tmp.flags & ~ASYNC_USR_MASK) != |