selinux: refactor code to return ERR_PTR in selinux_netlbl_sock_genattr

Refactor the code in selinux_netlbl_sock_genattr to return ERR_PTR
when an error occurs.

Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
This commit is contained in:
Gaosheng Cui 2024-07-12 09:45:34 +08:00 • committed by Paul Moore
commit fc328c869c