• Arnd Bergmann's avatar
    tulip: use ndo_siocdevprivate · 029a4fef
    Arnd Bergmann authored
    The tulip driver has a debugging method over ioctl built-in, but it
    does not actually check the command type, which may end up leading
    to random behavior when trying to run other ioctls on it.
    
    Change the driver to use ndo_siocdevprivate and limit the execution
    further to the first private command code. If anyone still has tools
    to run these debugging commands, they might have to be patched for
    it if they pass different ioctl command.
    
    The function has existed in this form since the driver was merged in
    Linux-1.1.86.
    
    Cc: linux-parisc@vger.kernel.org
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    029a4fef
de4x5.c 164 KB