[PATCH 5.4 306/475] video: fbdev: sm712fb: Fix crash in smtcfb_write()