mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
fbdev: imsttfb: Fix error path of imsttfb_probe()
Release ressources when init_imstt() returns failure. Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
@@ -1535,7 +1535,9 @@ static int imsttfb_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
|
||||
goto error;
|
||||
info->pseudo_palette = par->palette;
|
||||
ret = init_imstt(info);
|
||||
if (!ret)
|
||||
if (ret)
|
||||
goto error;
|
||||
|
||||
pci_set_drvdata(pdev, info);
|
||||
return ret;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user