Whamcloud - gitweb
LU-3470 llog: fix return value of llog_alloc_handle
[fs/lustre-release.git] / lustre / obdclass / llog.c
index 9477fbb..a690233 100644 (file)
@@ -65,7 +65,7 @@ struct llog_handle *llog_alloc_handle(void)
 
        OBD_ALLOC_PTR(loghandle);
        if (loghandle == NULL)
-               return ERR_PTR(-ENOMEM);
+               return NULL;
 
        init_rwsem(&loghandle->lgh_lock);
        spin_lock_init(&loghandle->lgh_hdr_lock);