[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080523054115.GB28807@digi.com>
Date: Fri, 23 May 2008 07:41:15 +0200
From: Uwe Kleine-König <Uwe.Kleine-Koenig@...i.com>
To: Tom Spink <tspink@...il.com>
CC: "Hans J. Koch" <hjk@...utronix.de>, <linux-kernel@...r.kernel.org>,
Greg Kroah-Hartman <gregkh@...e.de>,
Jan Altenberg <jan.altenberg@...utronix.de>,
Thomas Gleixner <tglx@...utronix.de>,
Magnus Damm <magnus.damm@...il.com>
Subject: Re: [PATCH 1/1] UIO: Add a write() function to enable/disable interrupts
Hello Tom,
Tom Spink wrote:
> The added benefit is that the code becomes less complex, as you don't
> have to check buffer sizes and copy the integer from userspace.
AFAIK this is wrong. You need to copy the integer from userspace in
uio_ioctl. Actually it's a value coming from user space, so you need to
do it somewhere.
Best regards
Uwe
--
Uwe Kleine-König, Software Engineer
Digi International GmbH Branch Breisach, Küferstrasse 8, 79206 Breisach, Germany
Tax: 315/5781/0242 / VAT: DE153662976 / Reg. Amtsgericht Dortmund HRB 13962
--
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