]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/oprofile/oprofile_files.c
Merge branch 'llseek' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl
[mv-sheeva.git] / drivers / oprofile / oprofile_files.c
index 9bb4d4bdc237be4b5797e4bcea4bcccf70dbfb04..89f63456646fa4c67b6ee74f7c657917be05a425 100644 (file)
@@ -80,14 +80,17 @@ static ssize_t depth_write(struct file *file, char const __user *buf, size_t cou
        if (*offset)
                return -EINVAL;
 
+       if (!oprofile_ops.backtrace)
+               return -EINVAL;
+
        retval = oprofilefs_ulong_from_user(&val, buf, count);
        if (retval)
                return retval;
 
-       retval = oprofile_set_backtrace(val);
-
+       retval = oprofile_set_ulong(&oprofile_backtrace_depth, val);
        if (retval)
                return retval;
+
        return count;
 }