]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[PATCH] USB: ioctl compat for usblp.c
authorPete Zaitcev <zaitcev@redhat.com>
Thu, 22 Dec 2005 01:03:24 +0000 (17:03 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 4 Jan 2006 21:51:44 +0000 (13:51 -0800)
commit318e479eb7ad9a948c6da381976d258464413816
treed73ef1b9d684ec47d9d963190b85e62df26c2fcc
parenta083dec0ed537a75fbe8f2f83d198e9e672240d8
[PATCH] USB: ioctl compat for usblp.c

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: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
--
drivers/usb/class/usblp.c