Skip to content

Commit a943710

Browse files
tititiou36hdeller
authored andcommitted
fbdev: uvesafb: Fixes an error handling path in uvesafb_probe()
If an error occurs after a successful uvesafb_init_mtrr() call, it must be undone by a corresponding arch_phys_wc_del() call, as already done in the remove function. This has been added in the remove function in commit 63e28a7 ("uvesafb: Clean up MTRR code") Fixes: 8bdb3a2 ("uvesafb: the driver core") Signed-off-by: Christophe JAILLET <[email protected]> Signed-off-by: Helge Deller <[email protected]>
1 parent 35b4f4d commit a943710

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/video/fbdev/uvesafb.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1758,6 +1758,7 @@ static int uvesafb_probe(struct platform_device *dev)
17581758
out_unmap:
17591759
iounmap(info->screen_base);
17601760
out_mem:
1761+
arch_phys_wc_del(par->mtrr_handle);
17611762
release_mem_region(info->fix.smem_start, info->fix.smem_len);
17621763
out_reg:
17631764
release_region(0x3c0, 32);

0 commit comments

Comments
 (0)