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 <>
Reported-by: "Alex Xu (Hello71)" <>
Suggested-by: Thadeu Lima de Souza Cascardo <>
Fixes: c0029de50982 ("net/scm: Regularize compat handling of scm_detach_fds()")
Tested-by: Alex Xu (Hello71) <>
Acked-by: Thadeu Lima de Souza Cascardo <>
Signed-off-by: Kees Cook <>
1 file changed