Fix error handling in HDIO_GETGEO compat wrapper