diff options
author | Michal Simek <michal.simek@xilinx.com> | 2018-10-08 14:17:19 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-10-11 19:59:29 +0200 |
commit | 2088cfd882d0403609bdf426e9b24372fe1b8337 (patch) | |
tree | 18ad17e417dff4a739104897375be9d0c775ac79 /drivers/parport/parport_ax88796.c | |
parent | 33a1a7be198657c8ca26ad406c4d2a89b7162bcc (diff) |
serial: uartps: Do not allow use aliases >= MAX_UART_INSTANCES
Aliases >= MAX_UART_INSTANCES is no problem to find out and use but in
error path is necessary skip clearing bits in bitmap to ensure that only
bits in allocated bitmap are handled and nothing beyond that.
Without this patch when for example serial90 alias is used then in error
patch bit 90 is clear in 32bit wide bitmap.
Fixes: ae1cca3fa347 ("serial: uartps: Change uart ID port allocation")
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/parport/parport_ax88796.c')
0 files changed, 0 insertions, 0 deletions