On Tue, Jul 13, 2004 at 12:58:47PM +0530, Amol Kailash wrote: > Hi, > > I am trying to write/understand the working of a USB bluetooth driver > by using bluetooth tty driver using bluetooth.c (by Greg > Kroah-Hartman) found in kernel source. I am aware of the hci_usb bluez > source, tested it and found it > working perfectly. I found that inspite of using the similar code to > find the number of endpoints of the device in the probe functions, > bluetooth.c has a problem while hci_usb.c doesn't. But I am getting a > NULL pointer dereference exception in the line : > > interface = &dev->actconfig->interface[ifnum].altsetting[0];
I have no idea why this is happening, sorry. Without access to your hardware, and the full modifications you have made, it would be impossible. > I am using bluetooth.c Version 0.12 on a slackware box running kernel 2.4.22 > I have not performed an modifications to the source and I compile the source using: > > gcc -c -Wall -D__KERNEL__ -DMODULE bluetooth.c Um, wrong command to build an external module, this might be your problem. And sorry, but I don't do any 2.4 usb kernel work anymore, so you are on your own here :) Good luck, greg k-h ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
