mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-08-22 00:42:01 +02: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:
parent
5cf9a090a3
commit
518ecb6a20
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user