Subject: oprofile: provide a default for /dev/oprofile/implementation From: Kevin Corry Provide a default value for the /dev/oprofile/implementation file, since that field is only initialized on i386. Signed-off-by: Kevin Corry Signed-off-by: Arnd Bergmann Index: linux-2.6/drivers/oprofile/oprofile_files.c =================================================================== --- linux-2.6.orig/drivers/oprofile/oprofile_files.c +++ linux-2.6/drivers/oprofile/oprofile_files.c @@ -120,7 +120,11 @@ static const struct file_operations dump static ssize_t implementation(struct file * file, char __user * buf, size_t count, loff_t * offset) { - return oprofilefs_str_to_user(oprofile_ops.implementation, buf, count, offset); + char *str = oprofile_ops.implementation; + if (!str) { + str = "oprofile"; + } + return oprofilefs_str_to_user(str, buf, count, offset); }