diff options
Diffstat (limited to 'drivers/char/stallion.c')
-rw-r--r-- | drivers/char/stallion.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/stallion.c b/drivers/char/stallion.c index 31fa5ab50..06795e07a 100644 --- a/drivers/char/stallion.c +++ b/drivers/char/stallion.c @@ -1338,7 +1338,7 @@ static int stl_setserial(stlport_t *portp, struct serial_struct *sp) #endif copy_from_user(&sio, sp, sizeof(struct serial_struct)); - if (!suser()) { + if (!capable(CAP_SYS_ADMIN)) { if ((sio.baud_base != portp->baud_base) || (sio.close_delay != portp->close_delay) || ((sio.flags & ~ASYNC_USR_MASK) != |