diff options
author | 2013-08-20 12:13:02 -0500 | |
---|---|---|
committer | 2013-08-21 11:49:47 -0700 | |
commit | 37171e3cb7a2f6fc594b524c940beb1ce85cc935 (patch) | |
tree | 16fe5b67c4ef5e25bce7ebbf1fee2f173311a3f4 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | drivers: base: reduce add_memory_section() for boot-time only (diff) | |
download | linux-dev-37171e3cb7a2f6fc594b524c940beb1ce85cc935.tar.xz linux-dev-37171e3cb7a2f6fc594b524c940beb1ce85cc935.zip |
drivers: base: remove improper get/put in add_memory_section()
The path through add_memory_section() when the memory block already
exists uses flawed refcounting logic. A get_device() is done on a
memory block using a pointer that might not be valid as we dropped
our previous reference and didn't obtain a new reference in the
proper way.
Lets stop pretending and just remove the get/put. The
mem_sysfs_mutex, which we hold over the entire init loop now, will
prevent the memory blocks from disappearing from under us.
Signed-off-by: Seth Jennings <sjenning@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions