net/mrvl: reset errno before library call