]> git.baikalelectronics.ru Git - kernel.git/commit
serial: core: use octal permissions on module param
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 14 Feb 2020 11:43:34 +0000 (13:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Feb 2020 16:34:18 +0000 (08:34 -0800)
commita25663d47d84e9292682be3fffa2b623bea637a2
treea5880c86d84cd373451a34408a42d3d81675e10e
parentc855300422a4b59325b7a4d9f4669518b32c7e1a
serial: core: use octal permissions on module param

Symbolic permissions 'S_IRUSR | S_IRGRP' are not preferred.
Use octal permissions '0440'. This also makes code shorter.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20200214114339.53897-4-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial_core.c