diff options
author | David Schalig <dschalig@nvidia.com> | 2011-10-28 13:59:38 +0900 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:49:35 -0800 |
commit | 220f331446a02bac02a7246c3e668602612749ac (patch) | |
tree | ef05a2d512d6c5e4c24199c20ab92c4e8f7c9fe4 /drivers/video | |
parent | f80e81610f4e2e3a9051b465a9176ac70f6913f1 (diff) |
video: tegra: dc: fix range check in fbdev cmap
Bug 868060
Change-Id: Id9f0cca6670a3090941f18b0f4b663e07d9fc7e0
Reviewed-on: http://git-master/r/60813
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Rebase-Id: Rd993acb0a3101f2d165108d215ef5f01ff6b1134
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/tegra/fb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/tegra/fb.c b/drivers/video/tegra/fb.c index 44be01013beb..a9910bc0107f 100644 --- a/drivers/video/tegra/fb.c +++ b/drivers/video/tegra/fb.c @@ -156,7 +156,7 @@ static int tegra_fb_setcmap(struct fb_cmap *cmap, struct fb_info *info) u16 *blue = cmap->blue; int start = cmap->start; - if (((unsigned)start > 255) || ((start + cmap->len) > 255)) + if (((unsigned)start > 255) || ((start + cmap->len) > 256)) return -EINVAL; if (info->fix.visual == FB_VISUAL_TRUECOLOR || |