From: Heiko Carstens Date: Tue, 28 Oct 2008 17:15:07 +0000 (+0000) Subject: S390: Fix sysdev class file creation. X-Git-Tag: v2.6.27.5~56 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c49d126ab91fdd12801e216105fa35f5a915781;p=pandora-kernel.git S390: Fix sysdev class file creation. commit da5aae7036692fa8d03da1b705c76fd750ed9e38 upstream 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. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed