summaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorDarrick J. Wong2008-11-12 22:25:36 +0100
committerLinus Torvalds2008-11-13 02:17:16 +0100
commitf0f7e0dc7393268947dc3ed285defc3d375487b9 (patch)
tree90ffb16affdfcfac145ff8dde775c89f558e599a /mm/page_alloc.c
parentFix platform drivers that crash on suspend/resume (diff)
downloadkernel-qcow2-linux-f0f7e0dc7393268947dc3ed285defc3d375487b9.tar.gz
kernel-qcow2-linux-f0f7e0dc7393268947dc3ed285defc3d375487b9.tar.xz
kernel-qcow2-linux-f0f7e0dc7393268947dc3ed285defc3d375487b9.zip
i5000-edac: hold reference to mci kobject
It turns out that edac_mc_del_mc will kobject_put the last kref on the mci object. If the timing is just right, that means that the mci object is freed before before i5000_remove_one has a chance to free the resources associated with it, causing a null pointer exceptions when unloading the driver. Insert a kobject_{get,put} pair so that this doesn't happen. Signed-off-by: Darrick J. Wong <djwong@us.ibm.com> Cc: Doug Thompson <norsk5@yahoo.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_alloc.c')
0 files changed, 0 insertions, 0 deletions