video: ffb: fix ffb_probe error path
PATCH 1/1 video: ffb: fix ffb_probe error path
Current implementation calls of_iounmap for par->fbc twice in error path. In the case of goto out_unmap_dac, we should call of_iounmap for par->dac.
Signed-off-by Axel Lin <[email protected]>
--- drivers/video/ffb.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/video/ffb.c +1 -1
@@ -1011,7 +1011,7 @@ out_dealloc_cmap:fb_dealloc_cmap (&info->cmap); out_unmap_dac: -of_iounmap (&op->resource[2 ], par->fbc,sizeof (struct ffb_fbc )); +of_iounmap (&op->resource[1 ], par->dac,sizeof (struct ffb_dac )); out_unmap_fbc:of_iounmap (&op->resource[2 ], par->fbc,sizeof (struct ffb_fbc ));
Signature · 1 line
1.7.1
From: Axel Lin <[email protected]>
Date: Tue, 08 Feb 2011 22:58:45 +0800
Quoted 4 lines
Current implementation calls
of_iounmapforpar->fbctwice in error path. In the case of gotoout_unmap_dac, we should callof_iounmapforpar->dac.Signed-off-by Axel Lin <[email protected]>
Good spotting:
Acked-by David S. Miller <[email protected]>