Seth Jennings 37171e3cb7 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>
2013-08-21 11:49:47 -07:00
..
2013-08-12 15:33:31 -07:00
2013-08-12 15:33:31 -07:00
2013-03-17 19:40:50 -07:00
2013-08-12 15:33:31 -07:00
2013-06-03 14:20:18 -07:00
2010-05-21 09:37:29 -07:00