[PATCH AUTOSEL 6.6 51/62] sock: Correct error checking condition for (assign|release)_proto_idx()