Whamcloud - gitweb
LU-6401 uapi: fix up lustre_ostid.h and lustre_fid.h
[fs/lustre-release.git] / lustre / obdclass / llog_ioctl.c
index 09934e7..906e6e6 100644 (file)
@@ -88,7 +88,8 @@ static int str2logid(struct llog_logid *logid, char *str, int len)
                 RETURN(-EINVAL);
 
        ostid_set_seq(&logid->lgl_oi, seq);
-       ostid_set_id(&logid->lgl_oi, id);
+       if (ostid_set_id(&logid->lgl_oi, id))
+               RETURN(-EINVAL);
 
        start = ++end;
         if (start - str >= len - 1)