Commit 518ecb6a authored by Helge Deller's avatar Helge Deller

fbdev: imsttfb: Fix error path of imsttfb_probe()

Release ressources when init_imstt() returns failure.
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent 5cf9a090
...@@ -1535,7 +1535,9 @@ static int imsttfb_probe(struct pci_dev *pdev, const struct pci_device_id *ent) ...@@ -1535,7 +1535,9 @@ static int imsttfb_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
goto error; goto error;
info->pseudo_palette = par->palette; info->pseudo_palette = par->palette;
ret = init_imstt(info); ret = init_imstt(info);
if (!ret) if (ret)
goto error;
pci_set_drvdata(pdev, info); pci_set_drvdata(pdev, info);
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment