Re: [PATCH] char: prevent opening unavailable ports in moxa.c

From: Alan Cox
Date: Wed Jun 10 2009 - 11:57:23 EST


On Tue, 9 Jun 2009 08:57:36 +0200
Dirk Eibach <eibach@xxxxxxxx> 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@xxxxxxxx>


Applied - thanks

Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/