ethdev: fix error handling in create function