diff options
| author | Pawel Osciak <[email protected]> | 2010-08-10 18:02:35 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2010-08-11 08:59:10 -0700 |
| commit | cd7d7e0244955a4694d1e79e8c8a9bef163d6305 (patch) | |
| tree | 2f10b24821d854597dce5d2a351cecb547f68894 /scripts/patch-kernel | |
| parent | bc2da1b6fb1a8af9a3226a4f5db3ce32a0a192c9 (diff) | |
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 <[email protected]>
Signed-off-by: Kyungmin Park <[email protected]>
Cc: InKi Dae <[email protected]>
Cc: Ben Dooks <[email protected]>
Cc: Marek Szyprowski <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions