diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2008-10-28 11:10:16 +0100 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2008-10-28 11:12:03 +0100 |
commit | da5aae7036692fa8d03da1b705c76fd750ed9e38 (patch) | |
tree | 7977dc95dfc62620ef563f76695c2b5be09fd2a1 /drivers/s390/char | |
parent | 250cf776f74b5932a1977d0489cae9206e2351dd (diff) | |
download | linux-stable-da5aae7036692fa8d03da1b705c76fd750ed9e38.tar.gz linux-stable-da5aae7036692fa8d03da1b705c76fd750ed9e38.tar.bz2 linux-stable-da5aae7036692fa8d03da1b705c76fd750ed9e38.zip |
[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>
Diffstat (limited to 'drivers/s390/char')
0 files changed, 0 insertions, 0 deletions