diff --git a/fs/coredump.c b/fs/coredump.c index 62406b6959b63389bd503cf6db4ea528266b79a8..a2856f7bb613b91c8691844f1781086ff31f5611 100644 --- a/fs/coredump.c +++ b/fs/coredump.c @@ -733,7 +733,7 @@ int dump_align(struct coredump_params *cprm, int align) { unsigned mod = cprm->written & (align - 1); if (align & (align - 1)) - return -EINVAL; - return mod ? dump_skip(cprm, align - mod) : 0; + return 0; + return mod ? dump_skip(cprm, align - mod) : 1; } EXPORT_SYMBOL(dump_align);