[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090713200804.GB1280@lilem.mirepesht>
Date: Tue, 14 Jul 2009 00:38:04 +0430
From: Ali Gholami Rudi <ali@...i.ir>
To: Greg KH <gregkh@...e.de>
Cc: fbdev <linux-fbdev-devel@...ts.sourceforge.net>,
Andrew Morton <akpm@...ux-foundation.org>,
Andrea Righi <righi.andrea@...il.com>,
Krzysztof Helt <krzysztof.h1@...pl>,
Geert Uytterhoeven <Geert.Uytterhoeven@...ycom.com>,
Philippe De Muyter <phdm@...qel.be>,
Arnd Bergmann <arnd@...db.de>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 0/2] fbdev: add fillrect and copyarea ioctls
Greg KH <gregkh@...e.de> wrote:
> On Mon, Jul 13, 2009 at 07:47:09PM +0430, Ali Gholami Rudi wrote:
> > Is there any reason for not adding these ioctls to fbdev? I searched
> > the net and couldn't any. Anyway, these patches simply implement those
> > ioctls.
>
> Have you also added the needed 32 vs. 64 bit handlers for these ioctls?
I guess Arnd's patch will do.
By the way, it should check for overflows, too? I mean should I change
this:
> + if (copy->dx + copy->width > info->var.xres ||
> + copy->sx + copy->width > info->var.xres ||
> + copy->dy + copy->height > info->var.yres ||
> + copy->sy + copy->height > info->var.yres) {
#define ISSUMLESSTHAN(a, b, s) (((a) <= (s)) && ((b) <= (s)) && \
((a) + (b) <= (s)))
if (!ISSUMLESSTHAN(copy->dx, copy->width, info->var.xres) || ...
Ali
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists