• Pete Zaitcev's avatar
    [PATCH] USB: ioctl compat for usblp.c · 318e479e
    Pete Zaitcev authored
    From: David Woodhouse <dwmw2>
    
    David has a G5 with a printer. I am quite surprised that nobody else noticed
    this before. Linus has a G5. Hackers hate printing in general, maybe.
    
    We do not use BKL anymore, because one of code paths had a sleeping call,
    so we had to use a semaphore. I am sure it's safe to use unlocked_ioctl.
    
    The new ioctls return long and retval is int. It looks completely fine to me.
    We never want these extra bits, and the sign extension ought to work right.
    Signed-off-by: default avatarPete Zaitcev <zaitcev@redhat.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    
    --
    318e479e
usblp.c 33.5 KB