]> git.baikalelectronics.ru Git - kernel.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)
commit389237c244bcc7eff1c7baf186ad22d456a285c2
tree8cecdce5b9cd54ea7cd41fd5f52f867b3ddb1c32
parentf27acfda4280722a63710e0e89bfe7aafe8fd093
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