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]
Message-Id: <37adb5f9cc7986b51b7b560cf7644ac5177a6e34.1268411141.git.ameya.palande@nokia.com>
Date:	Fri, 12 Mar 2010 19:16:36 +0200
From:	Ameya Palande <ameya.palande@...ia.com>
To:	linux-kernel@...r.kernel.org
Cc:	lrg@...mlogic.co.uk, broonie@...nsource.wolfsonmicro.com,
	dbrownell@...rs.sourceforge.net
Subject: [PATCH] regulator: Get rid of lockdep warning

From: Ameya Palande <ameya.palande@...ia.com>

WARNING: at kernel/lockdep.c:2706 sysfs_add_file_mode+0x4c/0xa8()

Signed-off-by: Ameya Palande <ameya.palande@...ia.com>
CC: Liam Girdwood <lrg@...mlogic.co.uk>
CC: Mark Brown <broonie@...nsource.wolfsonmicro.com>
CC: David Brownell <dbrownell@...rs.sourceforge.net>
---
 drivers/regulator/core.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index c7bbe30..2ad3272 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -1045,6 +1045,7 @@ static struct regulator *create_regulator(struct regulator_dev *rdev,
 		regulator->dev_attr.attr.owner = THIS_MODULE;
 		regulator->dev_attr.attr.mode = 0444;
 		regulator->dev_attr.show = device_requested_uA_show;
+		sysfs_attr_init(&regulator->dev_attr.attr);
 		err = device_create_file(dev, &regulator->dev_attr);
 		if (err < 0) {
 			printk(KERN_WARNING "%s: could not add regulator_dev"
-- 
1.6.3.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ