diff options
Diffstat (limited to 'drivers/char/moxa.c')
-rw-r--r-- | drivers/char/moxa.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/char/moxa.c b/drivers/char/moxa.c index 5e3ef5522194..f43c2e04eadd 100644 --- a/drivers/char/moxa.c +++ b/drivers/char/moxa.c | |||
@@ -1649,6 +1649,8 @@ int MoxaDriverIoctl(unsigned int cmd, unsigned long arg, int port) | |||
1649 | case MOXA_FIND_BOARD: | 1649 | case MOXA_FIND_BOARD: |
1650 | case MOXA_LOAD_C320B: | 1650 | case MOXA_LOAD_C320B: |
1651 | case MOXA_LOAD_CODE: | 1651 | case MOXA_LOAD_CODE: |
1652 | if (!capable(CAP_SYS_RAWIO)) | ||
1653 | return -EPERM; | ||
1652 | break; | 1654 | break; |
1653 | } | 1655 | } |
1654 | 1656 | ||