From: Pawel Osciak
Date: Wed, 11 Aug 2010 01:02:35 +0000 (-0700)
Subject: s3c-fb: fix various null references on framebuffer memory alloc failure
X-Git-Tag: v2.6.36-rc1~178
X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd7d7e0244955a4694d1e79e8c8a9bef163d6305;p=pandora-kernel.git
s3c-fb: fix various null references on framebuffer memory alloc failure
The following problems were found in the above situation:
sfb->windows[win] was being assigned at the end of s3c_fb_probe_win only.
This resulted in passing a NULL to s3c_fb_release_win if probe_win
returned early and a memory leak.
dma_free_writecombine does not allow its third argument to be NULL.
fb_dealloc_cmap does not verify whether its argument is not NULL.
Signed-off-by: Pawel Osciak
Signed-off-by: Kyungmin Park
Cc: InKi Dae
Cc: Ben Dooks
Cc: Marek Szyprowski
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
---
Reading git-diff-tree failed