[PATCH 3.18 168/185] serial: samsung: Fix out-of-bounds access through serial port index