mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
sanitize audit_fd_pair()
* no allocations * return void Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
564f6993ff
commit
157cf649a7
4 changed files with 20 additions and 49 deletions
|
|
@ -1016,10 +1016,7 @@ int do_pipe_flags(int *fd, int flags)
|
|||
goto err_fdr;
|
||||
fdw = error;
|
||||
|
||||
error = audit_fd_pair(fdr, fdw);
|
||||
if (error < 0)
|
||||
goto err_fdw;
|
||||
|
||||
audit_fd_pair(fdr, fdw);
|
||||
fd_install(fdr, fr);
|
||||
fd_install(fdw, fw);
|
||||
fd[0] = fdr;
|
||||
|
|
@ -1027,8 +1024,6 @@ int do_pipe_flags(int *fd, int flags)
|
|||
|
||||
return 0;
|
||||
|
||||
err_fdw:
|
||||
put_unused_fd(fdw);
|
||||
err_fdr:
|
||||
put_unused_fd(fdr);
|
||||
err_read_pipe:
|
||||
|
|
|
|||
Loading…
Reference in a new issue