lkml.org 
[lkml]   [2009]   [Nov]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] misc: use a proper range for minor number dynamic allocation
    > We could consider buggy the caller which asks for the same device name
    > more than once, without unregistering the first device. But better safe

    If they ask for the same name we certainly should. Probably we should
    error that request and use WARN_ON() to shame the offender in
    kerneloops.org.

    > than sorry: we should protect the correct drivers from the buggy ones
    > and avoid a depletion of the minor numbers. And, in case the driver core
    > returns another error for another reason (from device_create), we do the
    > right thing.

    Agreed we need to protect the working drivers.

    Alan


    \
     
     \ /
      Last update: 2009-11-10 12:11    [W:5.333 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site