]> git.karo-electronics.de Git - karo-tx-linux.git/commit
USB: usbmon: Implement compat_ioctl
authorPete Zaitcev <zaitcev@redhat.com>
Sat, 20 Dec 2008 19:56:08 +0000 (12:56 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 Feb 2009 17:53:21 +0000 (09:53 -0800)
commit843f222cd9fc4360c6b1b1e9946737f70857f63e
treef4d333b59fd92c074af343c5f53522eeab3d8ac7
parent39dcb616c62bcb5c037b3a3c509bc9fd8d9e4f33
USB: usbmon: Implement compat_ioctl

commit 7abce6bedc118eb39fe177c2c26be5d008505c14 upstream.

Running a 32-bit usbmon(8) on 2.6.28-rc9 produces the following:
ioctl32(usbmon:28563): Unknown cmd fd(3) cmd(400c9206){t:ffffff92;sz:12} arg(ffd3f458) on /dev/usbmon0

It happens because the compatibility mode was implemented for 2.6.18
and not updated for the fsops.compat_ioctl API.

This patch relocates the pieces from under #ifdef CONFIG_COMPAT into
compat_ioctl with no other changes except one new whitespace.

Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/mon/mon_bin.c