port: fix allocation check in ring SWX