Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 173716
b: refs/heads/master
c: 89f5e1f
h: refs/heads/master
v: v3
  • Loading branch information
Boaz Harrosh authored and James Bottomley committed Dec 4, 2009
1 parent 50c4243 commit ff31e98
Show file tree
Hide file tree
Showing 2 changed files with 9 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: c7d2dc2a204fa37bdf607d4d062dfd14e392aaf1
refs/heads/master: 89f5e1f2f13b1079b8d7ff7d3ade345b7ad7c009
8 changes: 8 additions & 0 deletions trunk/drivers/scsi/osd/osd_uld.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,15 @@ void osduld_put_device(struct osd_dev *od)

BUG_ON(od->scsi_device != oud->od.scsi_device);

/* If scsi has released the device (logout), and exofs has last
* reference on oud it will be freed by above osd_uld_release
* within fput below. But this will oops in cdev_release which
* is called after the fops->release. __uld_get/put pair makes
* sure we have a cdev for the duration of fput
*/
__uld_get(oud);
fput(od->file);
__uld_put(oud);
kfree(od);
}
}
Expand Down

0 comments on commit ff31e98

Please sign in to comment.