[PATCH 4.14 152/165] serial: samsung: Fix out-of-bounds access through serial port index