From: Sarah Sharp Date: Fri, 8 Mar 2013 00:24:47 +0000 (-0800) Subject: USB: Prepare for refactoring by adding extra udev checks. X-Git-Tag: v3.2.41~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5bd7c59c9340d87bfd271bed1091aace6a36185b;p=pandora-kernel.git USB: Prepare for refactoring by adding extra udev checks. commit 2d4fa940f99663c82ba55b2244638833b388e4e2 upstream. The next patch will refactor the hub port code to rip out the recursive call to hub_port_reset on a failed hot reset. In preparation for that, make sure all code paths can deal with being called with a NULL udev. The usb_device will not be valid if warm reset was issued because a port transitioned to the Inactive or Compliance Mode on a device connect. This patch should have no effect on current behavior. Signed-off-by: Sarah Sharp Acked-by: Alan Stern Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed