[PATCH 5.10 505/599] video: fbdev: sm712fb: Fix crash in smtcfb_write()