From: Darrick J. Wong Date: Wed, 12 Nov 2008 21:25:36 +0000 (-0800) Subject: i5000-edac: hold reference to mci kobject X-Git-Tag: v2.6.28-rc5~53 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0f7e0dc7393268947dc3ed285defc3d375487b9;p=pandora-kernel.git 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 Cc: Doug Thompson Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed