From: Amos Waterland Date: Fri, 29 Sep 2006 09:00:08 +0000 (-0700) Subject: [PATCH] Chardev checking of overlapping ranges X-Git-Tag: v2.6.19-rc1~764 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01d553d0fe9f90a132c5ff494872be8d4126be1e;p=pandora-kernel.git [PATCH] Chardev checking of overlapping ranges The code in __register_chrdev_region checks that if the driver wishing to register has the same major as an existing driver the new minor range is strictly less than the existing minor range. However, it does not also check that the new minor range is strictly greater than the existing minor range. That is, if driver X has registered with major=x and minor=0-3, __register_chrdev_region will allow driver Y to register with major=x and minor=1-4. Signed-off-by: Amos Waterland Cc: Linas Vepstas Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed