[PATCH 6.15 131/592] fbdev: Fix do_register_framebuffer to prevent null-ptr-deref in fb_videomode_to_var