From: Prarit Bhargava Date: Tue, 16 Oct 2012 13:02:27 +0000 (-0400) Subject: i7core_edac: fix panic when accessing sysfs files X-Git-Tag: v3.7-rc8~1^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42709efb3a47524c6252e1bdc85e205f7bc356fb;p=pandora-kernel.git i7core_edac: fix panic when accessing sysfs files The i7core_edac addrmatch_dev and chancounts_dev have sysfs files associated with them. The sysfs files, however, are coded so that the parent device is is the mci device. This is incorrect and the mci struct should be obtained through the addrmatch_dev and chancounts_dev device's private data field which is populated in i7core_create_sysfs_devices(). Signed-off-by: Prarit Bhargava Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed