Skip to content
Commit bb8478d7 authored by Axel Lin's avatar Axel Lin Committed by Greg Kroah-Hartman
Browse files

serial: ar933x_uart: Fix off-by-one for checking valid alias id



Current code uses the alias id as array subscript of ar933x_console_ports.
So the valid id is 0 ... CONFIG_SERIAL_AR933X_NR_UARTS - 1.

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1d267ea6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment