Greg Kroah-Hartman wrote: >> + memcpy(&cam->dev, &udev->dev, sizeof(struct device)); > >No, you can not just copy a struct device into somewhere else, that's >just not allowed at all. What do you want this for? Why not just >access that pointer through > cam->usbdev.dev >instead if you need it?
I only passed &cam->dev to dev_info(), dev_warn() and dev_err() for debugging purposes. I think it's safe: do you need another patch before applying the actual source code? Best regards Luca Risolia
pgpFpRRLlwEBm.pgp
Description: PGP signature