[PATCH] s1d13xxxfb: Fix resource leak

struct info may not be released in the driver's error path.

Coverity Bug 672

Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Antonino A. Daplas and committed by Linus Torvalds 98365f5e 939205b2

+1 -2
+1 -2
drivers/video/s1d13xxxfb.c
··· 588 588 goto bail; 589 589 } 590 590 591 + platform_set_drvdata(pdev, info); 591 592 default_par = info->par; 592 593 default_par->regs = ioremap_nocache(pdev->resource[1].start, 593 594 pdev->resource[1].end - pdev->resource[1].start +1); ··· 638 637 ret = -EINVAL; 639 638 goto bail; 640 639 } 641 - 642 - platform_set_drvdata(pdev, info); 643 640 644 641 printk(KERN_INFO "fb%d: %s frame buffer device\n", 645 642 info->node, info->fix.id);