Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Patch] fs/binfmt_elf.c: fix a wrong free
In kmalloc failing path, we shouldn't free pointers in 'info', because the struct 'info' is uninitilized when kmalloc is called. And when kmalloc returns NULL, it's needless to kfree it. Signed-off-by: WANG Cong <[email protected]> Cc: Alexander Viro <[email protected]> Reviewed-by: Pekka Enberg <[email protected]> -- Signed-off-by: Al Viro <[email protected]>
- Loading branch information