lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 29 Apr 2015 20:01:27 -0400
From:	Pai <vpai@...mai.com>
To:	"Nikolay Aleksandrov" <razor@...ckwall.org>,
	"Jay Vosburgh" <j.vosburgh@...il.com>,
	"Veaceslav Falico" <vfalico@...il.com>,
	"Andy Gospodarek" <andy@...yhouse.net>, <netdev@...r.kernel.org>,
	<linux-kernel@...r.kernel.org>, "Vishwanath Pai" <vpai@...mai.com>
Subject: [PATCH net] net/bonding: Fix code style issues in a previous commit

This fixes a few coding style issues in my previous patch:
commit e913fb279c56
("net: Fix Kernel Panic in bonding driver debugfs file: rlb_hash_table")

Signed-off-by: Vishwanath Pai <vpai@...mai.com>

diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
index d5fe5d5..ab3eeb1 100644
--- a/drivers/net/bonding/bond_main.c
+++ b/drivers/net/bonding/bond_main.c
@@ -4543,8 +4543,8 @@ unsigned int bond_get_num_tx_queues(void)
  */
 int bond_create(struct net *net, const char *name)
 {
-	struct net_device *bond_dev;
 	struct bonding *bond;
+	struct net_device *bond_dev;
 	struct alb_bond_info *bond_info;
 	int res;
 
@@ -4559,8 +4559,7 @@ int bond_create(struct net *net, const char *name)
 		return -ENOMEM;
 	}
 
-	/*
-	 * Initialize rx_hashtbl_used_head to RLB_NULL_INDEX.
+	/* Initialize rx_hashtbl_used_head to RLB_NULL_INDEX.
 	 * It is set to 0 by default which is wrong.
 	 */
 	bond = netdev_priv(bond_dev);
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists