summaryrefslogtreecommitdiffstats
path: root/crypto/lzo.c
diff options
context:
space:
mode:
authorPawel Osciak <p.osciak@samsung.com>2010-08-11 03:02:35 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2010-08-11 17:59:10 +0200
commitcd7d7e0244955a4694d1e79e8c8a9bef163d6305 (patch)
tree2f10b24821d854597dce5d2a351cecb547f68894 /crypto/lzo.c
parents3c-fb: integrate palette setup code into main driver (diff)
downloadlinux-cd7d7e0244955a4694d1e79e8c8a9bef163d6305.tar.xz
linux-cd7d7e0244955a4694d1e79e8c8a9bef163d6305.zip
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 <p.osciak@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Cc: InKi Dae <inki.dae@samsung.com> Cc: Ben Dooks <ben-linux@fluff.org> Cc: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'crypto/lzo.c')
0 files changed, 0 insertions, 0 deletions