[PATCH 4.4 114/131] serial: max310x: Fix to avoid potential NULL pointer dereference