[gpio]: read/write error checks.