]> Pileus Git - ~andy/linux/blobdiff - kernel/ksysfs.c
Merge tag 'sunxi-fixes-for-3.14' of https://github.com/mripard/linux into fixes
[~andy/linux] / kernel / ksysfs.c
index 9659d38e008f7f4e35ed4fcfb9a866f61f00c72f..d945a949760f0ec4a9fd09313e30fb5f651bc39a 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);