X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;ds=sidebyside;f=drivers%2Fvideo%2Fneofb.c;h=44f99a60bb9b768a9bcef3e8f3520dd0636d6222;hb=f0d55cc1a65852e6647d4f5d707c1c9b5471ce3c;hp=5d815f31645c8c79c3908298ec053573cb935837;hpb=3a41c5dbe8bc396a7fb16ca8739e945bb003342e;p=cascardo%2Flinux.git diff --git a/drivers/video/neofb.c b/drivers/video/neofb.c index 5d815f31645c..44f99a60bb9b 100644 --- a/drivers/video/neofb.c +++ b/drivers/video/neofb.c @@ -2075,6 +2075,7 @@ static int neofb_probe(struct pci_dev *dev, const struct pci_device_id *id) if (!fb_find_mode(&info->var, info, mode_option, NULL, 0, info->monspecs.modedb, 16)) { printk(KERN_ERR "neofb: Unable to find usable video mode.\n"); + err = -EINVAL; goto err_map_video; } @@ -2097,7 +2098,8 @@ static int neofb_probe(struct pci_dev *dev, const struct pci_device_id *id) info->fix.smem_len >> 10, info->var.xres, info->var.yres, h_sync / 1000, h_sync % 1000, v_sync); - if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) + err = fb_alloc_cmap(&info->cmap, 256, 0); + if (err < 0) goto err_map_video; err = register_framebuffer(info);