[SCSI] fix up non-modular SCSI
authorJames Bottomley <James.Bottomley@steeleye.com>
Wed, 6 Sep 2006 14:00:29 +0000 (09:00 -0500)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Thu, 7 Sep 2006 15:37:22 +0000 (10:37 -0500)
The recent change to the way scsi_device_get()/put() work broke the
non modular build (we do a module_refcount on a NULL).  Fix this by
checking for non-null before checking module_refcount().

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>

No differences found