summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorHarald Koerfgen <hkoerfg@web.de>2001-03-10 11:55:04 +0000
committerHarald Koerfgen <hkoerfg@web.de>2001-03-10 11:55:04 +0000
commita405f3ed3e25d3b229b4fafb26d1d75c5ef57f01 (patch)
tree32186bd2e53c2aaa13942de32282ccdf3e8dd92f /drivers
parent116674acc97ba75a720329996877077d988443a2 (diff)
suser() cleanup from Rob Radez <rob@osinvestor.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/tc/zs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tc/zs.c b/drivers/tc/zs.c
index 1991e17ee..d9828c708 100644
--- a/drivers/tc/zs.c
+++ b/drivers/tc/zs.c
@@ -1130,7 +1130,7 @@ static int set_serial_info(struct dec_serial * info,
copy_from_user(&new_serial,new_info,sizeof(new_serial));
old_info = *info;
- if (!suser()) {
+ if (!capable(CAP_SYS_ADMIN)) {
if ((new_serial.baud_base != info->baud_base) ||
(new_serial.type != info->type) ||
(new_serial.close_delay != info->close_delay) ||