[PATCH BlueZ] mesh: Fix structure memeber initialization

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This fixes incorrectly reversed assignment of "friend" value in
convert_node_to_storage()
---
 mesh/node.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mesh/node.c b/mesh/node.c
index e7016ce75..157991dad 100644
--- a/mesh/node.c
+++ b/mesh/node.c
@@ -1297,7 +1297,7 @@ static void convert_node_to_storage(struct mesh_node *node,
 
 	memcpy(db_node->uuid, node->dev_uuid, 16);
 
-	node->friend = db_node->modes.friend;
+	db_node->modes.friend = node->friend;
 	db_node->modes.relay.state = node->relay.mode;
 	db_node->modes.relay.cnt = node->relay.cnt;
 	db_node->modes.relay.interval = node->relay.interval;
-- 
2.17.2




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux