]> git.baikalelectronics.ru Git - kernel.git/commit
net/scm: Fix typo in SCM_RIGHTS compat refactoring
authorKees Cook <keescook@chromium.org>
Fri, 7 Aug 2020 17:53:54 +0000 (10:53 -0700)
committerKees Cook <keescook@chromium.org>
Fri, 7 Aug 2020 19:43:25 +0000 (12:43 -0700)
commitea91a9e0e711d0761f21bd72c9787255d397985e
treeac9bc5a2f50c9f68bf34faef91a70baab00e35ab
parent7048017a656148eb06c4ca8a42950cc584c4874b
net/scm: Fix typo in SCM_RIGHTS compat refactoring

When refactoring the SCM_RIGHTS code, I accidentally mis-merged my
native/compat diffs, which entirely broke using SCM_RIGHTS in compat
mode. Use the correct helper.

Reported-by: Christian Zigotzky <chzigotzky@xenosoft.de>
Link: https://lists.ozlabs.org/pipermail/linuxppc-dev/2020-August/216156.html
Reported-by: "Alex Xu (Hello71)" <alex_y_xu@yahoo.ca>
Link: https://lore.kernel.org/lkml/1596812929.lz7fuo8r2w.none@localhost/
Suggested-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Fixes: b7fc2921f1be ("net/scm: Regularize compat handling of scm_detach_fds()")
Tested-by: Alex Xu (Hello71) <alex_y_xu@yahoo.ca>
Acked-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
net/compat.c