Merge tag 'devicetree-for-3.14' of git://git.kernel.org/pub/scm/linux/kernel/git...
[cascardo/linux.git] / kernel / ksysfs.c
index 9659d38..d945a94 100644 (file)
@@ -126,7 +126,7 @@ static ssize_t vmcoreinfo_show(struct kobject *kobj,
 {
        return sprintf(buf, "%lx %x\n",
                       paddr_vmcoreinfo_note(),
-                      (unsigned int)vmcoreinfo_max_size);
+                      (unsigned int)sizeof(vmcoreinfo_note));
 }
 KERNEL_ATTR_RO(vmcoreinfo);