From 2d4fa940f99663c82ba55b2244638833b388e4e2 Mon Sep 17 00:00:00 2001 From: Sarah Sharp Date: Tue, 4 Dec 2012 15:27:50 -0800 Subject: [PATCH] USB: Prepare for refactoring by adding extra udev checks. 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 --- Reading git-format-patch failed