Merge tag 'riscv-for-linus-5.9-mw0' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-microblaze.git] / drivers / video / fbdev / neofb.c
index f5a676b..09a20d4 100644 (file)
@@ -1819,6 +1819,7 @@ static int neo_scan_monitor(struct fb_info *info)
 #else
                printk(KERN_ERR
                       "neofb: Only 640x480, 800x600/480 and 1024x768 panels are currently supported\n");
+               kfree(info->monspecs.modedb);
                return -1;
 #endif
        default: