[PATCH 5.15 044/160] fbdev: Fix do_register_framebuffer to prevent null-ptr-deref in fb_videomode_to_var