Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 35047
b: refs/heads/master
c: a506b44
h: refs/heads/master
i:
  35045: 6de47ac
  35043: 2eacc47
  35039: db61f26
v: v3
  • Loading branch information
Daniel Walker authored and James Bottomley committed Sep 12, 2006
1 parent 027bfc6 commit f5949b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2b7cbe20174695bca1afe2a8f755e1eb299f4768
refs/heads/master: a506b44bb5000b2652490a906c3e58beb2a8f6bb
2 changes: 2 additions & 0 deletions trunk/drivers/scsi/scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -875,10 +875,12 @@ void scsi_device_put(struct scsi_device *sdev)
{
struct module *module = sdev->host->hostt->module;

#ifdef CONFIG_MODULE_UNLOAD
/* The module refcount will be zero if scsi_device_get()
* was called from a module removal routine */
if (module && module_refcount(module) != 0)
module_put(module);
#endif
put_device(&sdev->sdev_gendev);
}
EXPORT_SYMBOL(scsi_device_put);
Expand Down

0 comments on commit f5949b8

Please sign in to comment.