[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)
commitda5aae7036692fa8d03da1b705c76fd750ed9e38
tree7977dc95dfc62620ef563f76695c2b5be09fd2a1
parent250cf776f74b5932a1977d0489cae9206e2351dd
[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