[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20090610165822.5b947273@lxorguk.ukuu.org.uk>
Date: Wed, 10 Jun 2009 16:58:22 +0100
From: Alan Cox <alan@...rguk.ukuu.org.uk>
To: Dirk Eibach <eibach@...ys.de>
Cc: linux-kernel@...r.kernel.org, jirislaby@...il.com,
Dirk Eibach <eibach@...ys.de>
Subject: Re: [PATCH] char: prevent opening unavailable ports in moxa.c
On Tue, 9 Jun 2009 08:57:36 +0200
Dirk Eibach <eibach@...ys.de> wrote:
> In moxa.c there are 32 minor numbers reserved for each device. The
> number of ports actually available per device is stored in
> moxa_board_conf->numPorts. This number is not considered in moxa_open().
> Opening a port that is not available results in a kernel oops.
> This patch adds a test to moxa_open() that prevents opening unavailable
> ports.
>
> Signed-off-by: Dirk Eibach <eibach@...ys.de>
Applied - thanks
Alan
--
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