]> git.baikalelectronics.ru Git - kernel.git/commit
[S390] Fix sysdev class file creation.
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Tue, 28 Oct 2008 10:10:16 +0000 (11:10 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 28 Oct 2008 10:12:03 +0000 (11:12 +0100)
commit4fd7c1ca5fea2a779ab3274604d3d9a486924e2a
tree7977dc95dfc62620ef563f76695c2b5be09fd2a1
parent92ce871de6edae83c3b7340952a2fb2a16ad8ba9
[S390] Fix sysdev class file creation.

Use sysdev_class_create_file() to create create sysdev class attributes
instead of sysfs_create_file(). Using sysfs_create_file() wasn't a very
good idea since the show and store functions have a different amount of
parameters for sysfs files and sysdev class files.
In particular the pointer to the buffer is the last argument and
therefore accesses to random memory regions happened.
Still worked surprisingly well until we got a kernel panic.

Cc: stable@kernel.org
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/smp.c