diff options
| author | David S. Miller <[email protected]> | 2008-10-13 09:45:26 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2008-10-13 16:51:44 +0000 |
| commit | 8440838bc5337243917f13bc14ea2445da5e0197 (patch) | |
| tree | 175af8fd7d678073a9794248132b606fb536c887 /security/selinux/hooks.c | |
| parent | applicom: Fix an unchecked user ioctl range and an error return (diff) | |
| download | kernel-8440838bc5337243917f13bc14ea2445da5e0197.tar.gz kernel-8440838bc5337243917f13bc14ea2445da5e0197.zip | |
serial: fix device name reporting when minor space is shared between drivers
The multiple drivers share the minor space occupied by a particular major
number, the actual index within the device name's space is indicated by
the tty_driver->name_base + uart_port->line
Another usable formula is (uart_driver->minor - MINOR_BASE) + port->line
Use those to print the device names properly in such situations in
serial_core.c and 8250.c
Signed-off-by: David S. Miller <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Alan Cox <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions
