Re: [PATCH 04/11] remove usb_interface pointer

From: Alan Stern
Date: Thu Jun 07 2012 - 16:42:04 EST


On Thu, 7 Jun 2012, Stefani Seibold wrote:

> That what i am looking for. If we do an usb_get_intf() in the
> skel_probe() function and an usb_put_intf() in skel_delete() function at
> the end, then it should be save to access the usb_device pointer by
> interface_to_usbdev() in the skel_delete() function. Right?

Safe, yes, but unnecessary. Just get rid of the usb_put_dev() in
skel_delete and the usb_get_dev in skel_probe.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/