]> err.no Git - linux-2.6/commit
[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)
commitf479ab87936563a286b8aa0e39003c40fa31c6da
tree9592ef7ca7b68dd2ec5c21e371a6b4ad76be8ac5
parent884d25cc4fda20908fd4ef93dbb41d817984b68b
[SCSI] fix up non-modular SCSI

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>
drivers/scsi/scsi.c