]> git.baikalelectronics.ru Git - kernel.git/commit
fs/binfmt_elf.c: don't free interpreter's ELF pheaders on common path
authorAlexey Dobriyan <adobriyan@gmail.com>
Tue, 7 Apr 2020 03:11:32 +0000 (20:11 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 7 Apr 2020 17:43:44 +0000 (10:43 -0700)
commit76d7e26d79eca7c1df270af62d4d6f498910149e
tree965710cda9ee46180b4a7b8d3e195eb4a67aad63
parent0bd1796de5c48c52f22336ef07b6694810e4c587
fs/binfmt_elf.c: don't free interpreter's ELF pheaders on common path

Static executables don't need to free NULL pointer.

It doesn't matter really because static executable is not common scenario
but do it anyway out of pedantry.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Link: http://lkml.kernel.org/r/20200219185330.GA4933@avx2
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/binfmt_elf.c