Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull objtool fix from Thomas Gleixner:
"Plug a memory leak in the instruction decoder"

* 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
objtool: Fix memory leak in decode_instructions()

+7 -2
+7 -2
tools/objtool/check.c
··· 267 267 &insn->immediate, 268 268 &insn->stack_op); 269 269 if (ret) 270 - return ret; 270 + goto err; 271 271 272 272 if (!insn->type || insn->type > INSN_LAST) { 273 273 WARN_FUNC("invalid instruction type %d", 274 274 insn->sec, insn->offset, insn->type); 275 - return -1; 275 + ret = -1; 276 + goto err; 276 277 } 277 278 278 279 hash_add(file->insn_hash, &insn->hash, insn->offset); ··· 297 296 } 298 297 299 298 return 0; 299 + 300 + err: 301 + free(insn); 302 + return ret; 300 303 } 301 304 302 305 /*