usb: host: tegra: Fix panic in tegra_ehci_remove()
device_remove_file() uses hcd->self.controller, but hcd is
already freed by usb_put_hcd(). This causes kernel panic
when USB device is being removed.
Fix this issue by calling the sysfs_remove_file() before kref_put()
Bug
1409766
Change-Id: I026b9fe193d93bb65c16d454083a270c410e62dc
Signed-off-by: Vinayak Pane <vpane@nvidia.com>
Reviewed-on: http://git-master/r/334154
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>