• Amos Waterland's avatar
    [PATCH] Chardev checking of overlapping ranges · 01d553d0
    Amos Waterland authored
    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: default avatarAmos Waterland <apw@us.ibm.com>
    Cc: Linas Vepstas <linas@austin.ibm.com>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    01d553d0
char_dev.c 11 KB