[PATCH AUTOSEL 6.1 41/46] sock: Correct error checking condition for (assign|release)_proto_idx()