[PATCH 4.14 40/95] serial: mctrl_gpio: Check for NULL pointer