X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fobdclass%2Fllog.c;h=a69023305e054b5c8ef792dd1cfa9d63efe934d7;hb=2de8f60b9ca1c8e281235857d902d1f2a599c4b5;hp=9477fbb45072dc4d9d486687c288d676108e5e42;hpb=3e38436dc09097429e1ca1fbfa3ef4981e124715;p=fs%2Flustre-release.git diff --git a/lustre/obdclass/llog.c b/lustre/obdclass/llog.c index 9477fbb..a690233 100644 --- a/lustre/obdclass/llog.c +++ b/lustre/obdclass/llog.c @@ -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);