diff options
author | Jonathan Corbet <corbet@lwn.net> | 2008-07-14 23:29:34 +0200 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2008-07-14 23:29:34 +0200 |
commit | 2fceef397f9880b212a74c418290ce69e7ac00eb (patch) | |
tree | d9cc09ab992825ef7fede4a688103503e3caf655 /block/bsg.c | |
parent | IB/umad: BKL is not needed for ib_umad_open() (diff) | |
parent | Linux 2.6.26 (diff) | |
download | linux-2fceef397f9880b212a74c418290ce69e7ac00eb.tar.xz linux-2fceef397f9880b212a74c418290ce69e7ac00eb.zip |
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) { struct bsg_class_device *bcd = container_of(kref, struct bsg_class_device, ref); + struct device *parent = bcd->parent; if (bcd->release) bcd->release(bcd->parent); - put_device(bcd->parent); + put_device(parent); } static int bsg_put_device(struct bsg_device *bd) |