diff options
author | Lajos Molnar <molnar@ti.com> | 2010-02-26 14:22:46 -0600 |
---|---|---|
committer | David Sin <davidsin@ti.com> | 2010-06-02 09:53:17 -0500 |
commit | 86f92b1f66aeb957996eda059c3e65569cd17fdf (patch) | |
tree | f084590b39986dec4171f860024a8dcff60a8931 | |
parent | 3ddcf9adee8d947a9438f2a5d84bcd9294fb350a (diff) |
TILER: Corrected parameter checking in tiler_alloc_packed_nv12.
Signed-off-by: Lajos Molnad <molnar@ti.com>
-rw-r--r-- | drivers/media/video/tiler/tiler_pack.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/tiler/tiler_pack.c b/drivers/media/video/tiler/tiler_pack.c index e7727bf7be1f..7c3c6d95ca0f 100644 --- a/drivers/media/video/tiler/tiler_pack.c +++ b/drivers/media/video/tiler/tiler_pack.c @@ -207,6 +207,7 @@ void tiler_alloc_packed_nv12(s32 *count, u32 width, u32 height, void **y_sysptr, !uv_sysptr || !uv_allocptr || *count <= 0) { if (count) *count = 0; + return; } y_width = DIVIDE_UP(width, 64); |