[PATCH] Orinoco: consolidate allocation code