serial: samsung: Fix possible out of bounds access on non-DT platform