From 60d9f67d478e7c8ed09e3a6888b29aca2d978979 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Sat, 13 Sep 2014 12:26:34 +0200 Subject: [PATCH] uas: Simplify unlink of data urbs on error There is no need for all the trickery with dropping the lock, we can simply reference the urbs while we hold the lock to ensure the urbs don't disappear beneath us, and do the actual unlink (+ unreference) after we've dropped the lock. This also fixes a race where we may loose of cmnd ownership to the scsi midlayer without holding the lock due to the midlayer re-claiming ownership through an abort (which will be handled by a future patch in this series). Signed-off-by: Hans de Goede Signed-off-by: Greg Kroah-Hartman --- Reading git-format-patch failed