• Heiko Carstens's avatar
    [S390] Fix sysdev class file creation. · da5aae70
    Heiko Carstens authored
    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: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
    Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
    da5aae70
smp.c 28.9 KB