diff options
author | Alexey Khoroshilov <khoroshilov@ispras.ru> | 2017-07-04 17:47:23 +0200 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> | 2017-07-04 17:47:23 +0200 |
commit | 6af574e826740bf17663b48ba3f8fadb81d2113f (patch) | |
tree | f44547be4c94f49311e251fb3fc7811e538254c9 /drivers/video/fbdev | |
parent | 526c9e971f4fdec4cab41b531405e211afb1d82a (diff) | |
download | linux-6af574e826740bf17663b48ba3f8fadb81d2113f.tar.gz linux-6af574e826740bf17663b48ba3f8fadb81d2113f.tar.bz2 linux-6af574e826740bf17663b48ba3f8fadb81d2113f.zip |
vmlfb: Fix error handling in cr_pll_init()
There is an error path, where iomemory is left mapped.
Found by Linux Driver Verification project (linuxtesting.org).
Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Cc: Alan Hourihane <alanh@fairlite.demon.co.uk>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Diffstat (limited to 'drivers/video/fbdev')
-rw-r--r-- | drivers/video/fbdev/vermilion/cr_pll.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/fbdev/vermilion/cr_pll.c b/drivers/video/fbdev/vermilion/cr_pll.c index ebc6e6e0dd0f..ba105c876bed 100644 --- a/drivers/video/fbdev/vermilion/cr_pll.c +++ b/drivers/video/fbdev/vermilion/cr_pll.c @@ -185,6 +185,7 @@ static int __init cr_pll_init(void) if (err) { printk(KERN_ERR "Carillo Ranch failed to initialize vml_sys.\n"); + iounmap(mch_regs_base); pci_dev_put(mch_dev); return err; } |