Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7174d733 authored by Patrick Daly's avatar Patrick Daly Committed by Gerrit - the friendly Code Review server
Browse files

msm: lpm-levels-of: Fix lockdep warnings



Properly initialize dynamically allocated sysfs attributes.

[   12.901443] WARNING: at kernel/kernel/lockdep.c:2987
				lockdep_init_map+0x138/0x488()
[   12.928312] DEBUG_LOCKS_WARN_ON(1)
[   12.931395] Modules linked in:
[   12.934676] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.10.73
[   12.942918] Call trace:
[   12.945294] [<ffffffc000206bd0>] dump_backtrace+0x0/0x134
[   12.950668] [<ffffffc000206d14>] show_stack+0x10/0x1c
[   12.955727] [<ffffffc000d3f324>] dump_stack+0x1c/0x28
[   12.960740] [<ffffffc00021d1a4>] warn_slowpath_common+0x78/0x9c
[   12.966780] [<ffffffc00021d214>] warn_slowpath_fmt+0x4c/0x58
[   12.972306] [<ffffffc00028100c>] lockdep_init_map+0x134/0x488
[   12.978014] [<ffffffc00036c1d4>] sysfs_add_file_mode+0x80/0xf0
[   12.983847] [<ffffffc00036edd0>] internal_create_group+0x138/0x1c8
[   12.989990] [<ffffffc00036ee70>] sysfs_create_group+0x10/0x1c
[   12.995741] [<ffffffc00097fd64>] create_lvl_avail_nodes+0xc4/0x104
[   13.001901] [<ffffffc000980000>] create_cluster_lvl_nodes+0x78/0x29c
[   13.008220] [<ffffffc00097eb50>] lpm_probe+0x1cc/0x238

Change-Id: Ia2bf222ca7496af2c057c8361a653afc6add00cd
Signed-off-by: default avatarPatrick Daly <pdaly@codeaurora.org>
parent 854262df
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment