You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Pete Zaitcev
c36fc889b5
[PATCH] usb: Patch for USBDEVFS_IOCTL from 32-bit programs
Dell supplied me with the following test:
#include<stdio.h>
#include<errno.h>
#include<sys/ioctl.h>
#include<fcntl.h>
#include<linux/usbdevice_fs.h>
main(int argc,char*argv[])
{
struct usbdevfs_hub_portinfo hubPortInfo = {0};
struct usbdevfs_ioctl command = {0};
command.ifno = 0;
command.ioctl_code = USBDEVFS_HUB_PORTINFO;
command.data = (void*)&hubPortInfo;
int fd, ret;
if(argc != 2) {
fprintf(stderr,"Usage: %s /proc/bus/usb/<BusNo>/<HubID>\n",argv[0]);
fprintf(stderr,"Example: %s /proc/bus/usb/001/001\n",argv[0]);
exit(1);
}
errno = 0;
fd = open(argv[1],O_RDWR);
if(fd < 0) {
perror("open failed:");
exit(errno);
}
errno = 0;
ret = ioctl(fd,USBDEVFS_IOCTL,&command);
printf("IOCTL return status:%d\n",ret);
if(ret<0) {
perror("IOCTL failed:");
close(fd);
exit(3);
} else {
printf("IOCTL passed:Num of ports %d\n",hubPortInfo.nports);
close(fd);
exit(0);
}
return 0;
}
I have verified that it breaks if built in 32 bit mode on x86_64 and that
the patch below fixes it.
Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
|
20 years ago |
.. |
acpi
|
…
|
|
asm-alpha
|
[PATCH] gfp_t: dma-mapping (alpha)
|
20 years ago |
asm-arm
|
Merge master.kernel.org:/home/rmk/linux-2.6-arm
|
20 years ago |
asm-arm26
|
…
|
|
asm-cris
|
[PATCH] gfp_t: dma-mapping (cris)
|
20 years ago |
asm-frv
|
[PATCH] gfp_t: dma-mapping (frv)
|
20 years ago |
asm-generic
|
[PATCH] gfp_t: dma-mapping (simple cases)
|
20 years ago |
asm-h8300
|
…
|
|
asm-i386
|
[PATCH] gfp flags annotations - part 1
|
20 years ago |
asm-ia64
|
[PATCH] gfp_t: dma-mapping (ia64)
|
20 years ago |
asm-m32r
|
[PATCH] gfp_t: dma-mapping (simple cases)
|
20 years ago |
asm-m68k
|
…
|
|
asm-m68knommu
|
…
|
|
asm-mips
|
Merge branch 'upstream' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6
|
20 years ago |
asm-parisc
|
Auto-update from upstream
|
20 years ago |
asm-powerpc
|
[PATCH] ppc32: Fix timekeeping
|
20 years ago |
asm-ppc
|
[PATCH] gfp_t: dma-mapping (ppc)
|
20 years ago |
asm-ppc64
|
[PATCH] gfp flags annotations - part 1
|
20 years ago |
asm-s390
|
[PATCH] s390 signal annotations
|
20 years ago |
asm-sh
|
[PATCH] gfp_t: dma-mapping (sh)
|
20 years ago |
asm-sh64
|
[PATCH] gfp_t: dma-mapping (simple cases)
|
20 years ago |
asm-sparc
|
[PATCH] gfp_t: dma-mapping (simple cases)
|
20 years ago |
asm-sparc64
|
[PATCH] gfp_t: dma-mapping (simple cases)
|
20 years ago |
asm-um
|
[PATCH] gfp_t: remaining bits of arch/*
|
20 years ago |
asm-v850
|
…
|
|
asm-x86_64
|
[PATCH] gfp_t: dma-mapping (amd64)
|
20 years ago |
asm-xtensa
|
[PATCH] gfp_t: dma-mapping (xtensa)
|
20 years ago |
linux
|
[PATCH] usb: Patch for USBDEVFS_IOCTL from 32-bit programs
|
20 years ago |
math-emu
|
…
|
|
media
|
[PATCH] i2c: ID redefinition cleanups
|
20 years ago |
mtd
|
…
|
|
net
|
Merge master.kernel.org:/pub/scm/linux/kernel/git/holtmann/bluetooth-2.6
|
20 years ago |
pcmcia
|
[PATCH] yenta: auto-tune EnE bridges for CardBus cards
|
20 years ago |
rdma
|
[PATCH] gfp flags annotations - part 1
|
20 years ago |
rxrpc
|
[PATCH] gfp flags annotations - part 1
|
20 years ago |
scsi
|
[PATCH] gfp_t: drivers/scsi
|
20 years ago |
sound
|
[PATCH] gfp_t: sound
|
20 years ago |
video
|
…
|
|