summaryrefslogtreecommitdiff
path: root/sys/dev/dm/dm_target_linear.c
diff options
context:
space:
mode:
authortkusumi <tkusumi@NetBSD.org>2019-12-05 16:59:43 +0000
committertkusumi <tkusumi@NetBSD.org>2019-12-05 16:59:43 +0000
commit59a98326f58e2471117dd06402e049ce27f36218 (patch)
treed36439ecf9fa9f1a5bf78988863c60b0c1c8955c /sys/dev/dm/dm_target_linear.c
parent0b4fa5b5b97019300880c93444f6ddb7f097b479 (diff)
dm: Make dm core set config to NULL after destroy
Just let dm core do this instead of having a comment expecting each target to do the right thing. taken-from: DragonFlyBSD
Diffstat (limited to 'sys/dev/dm/dm_target_linear.c')
-rw-r--r--sys/dev/dm/dm_target_linear.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/dm/dm_target_linear.c b/sys/dev/dm/dm_target_linear.c
index 7d72f30cdd2..4744d78c9df 100644
--- a/sys/dev/dm/dm_target_linear.c
+++ b/sys/dev/dm/dm_target_linear.c
@@ -1,4 +1,4 @@
-/* $NetBSD: dm_target_linear.c,v 1.21 2019/12/03 15:47:38 tkusumi Exp $ */
+/* $NetBSD: dm_target_linear.c,v 1.22 2019/12/05 16:59:43 tkusumi Exp $ */
/*
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dm_target_linear.c,v 1.21 2019/12/03 15:47:38 tkusumi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dm_target_linear.c,v 1.22 2019/12/05 16:59:43 tkusumi Exp $");
/*
* This file implements initial version of device-mapper dklinear target.
@@ -166,7 +166,6 @@ dm_target_linear_destroy(dm_table_entry_t * table_en)
goto out;
dm_target_linear_config_t *tlc = table_en->target_config;
- table_en->target_config = NULL;
/* Decrement pdev ref counter if 0 remove it */
dm_pdev_decr(tlc->pdev);