fix review comment

This commit is contained in:
Josh Poimboeuf 2014-10-08 11:16:09 -05:00
parent ea819a18b0
commit fca189152a

View File

@ -721,16 +721,15 @@ static int kpatch_warn_only_change(struct section *sec)
*/ */
found = 0; found = 0;
list_for_each_entry(rela, &sec->rela->relas, list) { list_for_each_entry(rela, &sec->rela->relas, list) {
if (rela->offset >= offset + length) { if (rela->offset < offset + length)
if (rela->string) continue;
continue; if (rela->string)
if (!strncmp(rela->sym->name, continue;
"warn_slowpath_", 14)) { if (!strncmp(rela->sym->name, "warn_slowpath_", 14)) {
found = 1; found = 1;
break; break;
}
return 0;
} }
return 0;
} }
if (!found) if (!found)
return 0; return 0;