diff options
author | Joonyoung Shim <jy0922.shim@samsung.com> | 2012-09-27 19:26:03 +0900 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2012-10-04 10:10:56 +0900 |
commit | fab9f8d093a60e524efbf6afe6c10e10c91f1642 (patch) | |
tree | 77ebb6c0cd9f5ae0fe97ff1aba1e14c2f434f84f /drivers/gpu/drm/exynos/exynos_drm_g2d.c | |
parent | 2ab97921786f614bc9296722d8a2e2ce32d1760b (diff) | |
download | blackbird-obmc-linux-fab9f8d093a60e524efbf6afe6c10e10c91f1642.tar.gz blackbird-obmc-linux-fab9f8d093a60e524efbf6afe6c10e10c91f1642.zip |
drm/exynos: fix kcalloc size of g2d cmdlist node
The size argument means just one element size when we call kcalloc, so
G2D_CMDLIST_NUM * sizeof(*node) is wrong.
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_drm_g2d.c')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_g2d.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_g2d.c b/drivers/gpu/drm/exynos/exynos_drm_g2d.c index dcbc4cb423be..3fbe5915ccce 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_g2d.c +++ b/drivers/gpu/drm/exynos/exynos_drm_g2d.c @@ -165,8 +165,7 @@ static int g2d_init_cmdlist(struct g2d_data *g2d) return -ENOMEM; } - node = kcalloc(G2D_CMDLIST_NUM, G2D_CMDLIST_NUM * sizeof(*node), - GFP_KERNEL); + node = kcalloc(G2D_CMDLIST_NUM, sizeof(*node), GFP_KERNEL); if (!node) { dev_err(dev, "failed to allocate memory\n"); ret = -ENOMEM; |