]> git.kernelconcepts.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)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 28 Nov 2012 08:56:00 +0000 (06:56 -0200)
commit42709efb3a47524c6252e1bdc85e205f7bc356fb
tree8cecdce5b9cd54ea7cd41fd5f52f867b3ddb1c32
parent7e06b7a3333f5c7a0cec12aff20d39c5c87c0795
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 <prarit@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/edac/i7core_edac.c