[PATCH 6.2 077/110] kernel/sys.c: fix and improve control flow in __sys_setres[ug]id()