Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268037
b: refs/heads/master
c: 582f445
h: refs/heads/master
i:
  268035: ad19e50
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Aug 29, 2011
1 parent f97bfb7 commit 36fc830
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f6c17484eb386014ee52d9edc8b3e8263d57c640
refs/heads/master: 582f445fde4886959deacf93b6dea6817f41ba88
3 changes: 2 additions & 1 deletion trunk/drivers/staging/hv/hyperv_storage.h
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,8 @@ static inline struct storvsc_device *get_out_stor_device(
struct storvsc_device *stor_device;

stor_device = (struct storvsc_device *)device->ext;
if (stor_device && atomic_read(&stor_device->ref_count) > 1)
if (stor_device && (atomic_read(&stor_device->ref_count) > 1) &&
!stor_device->destroy)
atomic_inc(&stor_device->ref_count);
else
stor_device = NULL;
Expand Down

0 comments on commit 36fc830

Please sign in to comment.