mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 01:32:21 +02:00
fbdev: pm2fb: unwind WC setup on probe failure
Add arch_phys_wc_del() on error path to keep the write-combining setup balanced when later probe steps fail. Signed-off-by: Haoxiang Li <haoxiang_li2024@163.com> Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
parent
fc36dd3041
commit
16eb19f0c9
|
|
@ -1711,6 +1711,7 @@ static int pm2fb_probe(struct pci_dev *pdev, const struct pci_device_id *id)
|
|||
err_exit_both:
|
||||
kfree(info->pixmap.addr);
|
||||
err_exit_pixmap:
|
||||
arch_phys_wc_del(default_par->wc_cookie);
|
||||
iounmap(info->screen_base);
|
||||
release_mem_region(pm2fb_fix.smem_start, pm2fb_fix.smem_len);
|
||||
err_exit_mmio:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user