diff options
author | Jonathan Corbet <corbet@lwn.net> | 2008-07-14 17:29:34 -0400 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2008-07-14 17:29:34 -0400 |
commit | 2fceef397f9880b212a74c418290ce69e7ac00eb (patch) | |
tree | d9cc09ab992825ef7fede4a688103503e3caf655 /block/bsg.c | |
parent | feae1ef116ed381625d3731c5ae4f4ebcb3fa302 (diff) | |
parent | bce7f793daec3e65ec5c5705d2457b81fe7b5725 (diff) |
Merge commit 'v2.6.26' into bkl-removal
Diffstat (limited to 'block/bsg.c')
-rw-r--r-- | block/bsg.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/block/bsg.c b/block/bsg.c index dbe3ffd505ca..7c59ffaedfe0 100644 --- a/block/bsg.c +++ b/block/bsg.c | |||
@@ -710,11 +710,12 @@ static void bsg_kref_release_function(struct kref *kref) | |||
710 | { | 710 | { |
711 | struct bsg_class_device *bcd = | 711 | struct bsg_class_device *bcd = |
712 | container_of(kref, struct bsg_class_device, ref); | 712 | container_of(kref, struct bsg_class_device, ref); |
713 | struct device *parent = bcd->parent; | ||
713 | 714 | ||
714 | if (bcd->release) | 715 | if (bcd->release) |
715 | bcd->release(bcd->parent); | 716 | bcd->release(bcd->parent); |
716 | 717 | ||
717 | put_device(bcd->parent); | 718 | put_device(parent); |
718 | } | 719 | } |
719 | 720 | ||
720 | static int bsg_put_device(struct bsg_device *bd) | 721 | static int bsg_put_device(struct bsg_device *bd) |