ramips: 5.4: handle ERR_PTR properly