[PATCH AUTOSEL 6.14 091/108] sock: Correct error checking condition for (assign|release)_proto_idx()