]> git.karo-electronics.de Git - karo-tx-linux.git/commit
i7core_edac: fix panic when accessing sysfs files
authorPrarit Bhargava <prarit@redhat.com>
Tue, 16 Oct 2012 13:02:27 +0000 (09:02 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Dec 2012 19:13:11 +0000 (11:13 -0800)
commit8853771b5b45e903def4d937eac316373a6dd38b
tree7fe20570e26dd159a7af669af224623bbfb45ad2
parenta47496a30d5ad21fccc117dd31802cd35e6f47ee
i7core_edac: fix panic when accessing sysfs files

commit 42709efb3a47524c6252e1bdc85e205f7bc356fb upstream.

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 <prarit@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Cc: Shuah Khan <shuah.khan@hp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/edac/i7core_edac.c