[PATCH 4.16 148/161] serial: samsung: Fix out-of-bounds access through serial port index