projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cf9a09
)
fbdev: imsttfb: Fix error path of imsttfb_probe()
author
Helge Deller
<deller@gmx.de>
Sat, 27 May 2023 09:37:29 +0000
(11:37 +0200)
committer
Helge Deller
<deller@gmx.de>
Sat, 27 May 2023 17:14:26 +0000
(19:14 +0200)
Release ressources when init_imstt() returns failure.
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/imsttfb.c
patch
|
blob
|
history
diff --git
a/drivers/video/fbdev/imsttfb.c
b/drivers/video/fbdev/imsttfb.c
index 075f11991281589250745aa7972ae03dfb8045f9..ee7d01ad14068687b968a42f1558ed730664e47b 100644
(file)
--- a/
drivers/video/fbdev/imsttfb.c
+++ b/
drivers/video/fbdev/imsttfb.c
@@
-1535,8
+1535,10
@@
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)
- pci_set_drvdata(pdev, info);
+ if (ret)
+ goto error;
+
+ pci_set_drvdata(pdev, info);
return ret;
error: