mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] bcache: Trivial fix to bdput
@ 2020-12-21  3:17 Yi Li
  2020-12-21  5:48 ` [PATCH v2] bcache: Trivial fix to register_bcache Yi Li
  2020-12-21  7:35 ` [PATCH] bcache: Trivial fix to bdput Coly Li
  0 siblings, 2 replies; 5+ messages in thread
From: Yi Li @ 2020-12-21  3:17 UTC (permalink / raw)
  To: colyli; +Cc: yilikernel, kent.overstreet, linux-bcache, linux-kernel, Yi Li

Trivial fix to bdput.

Signed-off-by: Yi Li <yili@winhong.com>
---
 drivers/md/bcache/super.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c
index f7ad1e26b013..1756f6926098 100644
--- a/drivers/md/bcache/super.c
+++ b/drivers/md/bcache/super.c
@@ -2525,8 +2525,8 @@ static ssize_t register_bcache(struct kobject *k, struct kobj_attribute *attr,
 			else
 				err = "device busy";
 			mutex_unlock(&bch_register_lock);
-			if (!IS_ERR(bdev))
-				bdput(bdev);
+			if (!IS_ERR(dev))
+				bdput(dev);
 			if (attr == &ksysfs_register_quiet)
 				goto done;
 		}
-- 
2.25.3




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-12-23  8:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-21  3:17 [PATCH] bcache: Trivial fix to bdput Yi Li
2020-12-21  5:48 ` [PATCH v2] bcache: Trivial fix to register_bcache Yi Li
2020-12-21  7:35 ` [PATCH] bcache: Trivial fix to bdput Coly Li
2020-12-21  9:49   ` [PATCH v4] bcache:remove a superfluous check in register_bcache Yi Li
2020-12-23  8:58     ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome