Bug 15504
Summary: | BUG: key ffff88004c3811e0 not in .data! occured in lockdep.c | ||
---|---|---|---|
Product: | Other | Reporter: | Christian Casteyde (casteyde.christian) |
Component: | Other | Assignee: | other_other |
Status: | CLOSED PATCH_ALREADY_AVAILABLE | ||
Severity: | normal | CC: | alan-jenkins, wsa |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.34-rc1 | Subsystem: | |
Regression: | Yes | Bisected commit-id: |
Description
Christian Casteyde
2010-03-10 06:56:16 UTC
Update : still present in 2.6.34-rc2. Seems to be fixed with this patch when applied to -rc3: From Dan: We now have to call sysfs_attr_init() for dynamically allocated sysfs attributes or lockdep complains. Signed-off-by: Dan Carpenter <error27@gmail.com> diff --git a/drivers/thermal/thermal_sys.c b/drivers/thermal/thermal_sys.c index 5066de5..d4fec47 100644 --- a/drivers/thermal/thermal_sys.c +++ b/drivers/thermal/thermal_sys.c @@ -725,6 +725,7 @@ int thermal_zone_bind_cooling_device(struct thermal_zone_device *tz, goto release_idr; sprintf(dev->attr_name, "cdev%d_trip_point", dev->id); + sysfs_attr_init(&dev->attr.attr); dev->attr.attr.name = dev->attr_name; dev->attr.attr.mode = 0444; dev->attr.show = thermal_cooling_device_trip_point_show; Duplicate of Bug 15548. Proposed patch from there looks a bit different (https://patchwork.kernel.org/patch/87436/). Update: doesn't seem to occur anymore in -rc4. Closing since it doesn't occur either in -rc5 => patch may be upstream now... Fixed by 975f8c5653acba461229e671202113da69b87be1 (as the duplicate bug 15548). Who is closing this? |