diff --git a/fs/lustre/ptlrpc/import.c b/fs/lustre/ptlrpc/import.c index c4a732d..76a40be 100644 --- a/fs/lustre/ptlrpc/import.c +++ b/fs/lustre/ptlrpc/import.c @@ -1571,7 +1571,7 @@ static struct ptlrpc_request *ptlrpc_disconnect_prep_req(struct obd_import *imp) req = ptlrpc_request_alloc_pack(imp, &RQF_MDS_DISCONNECT, LUSTRE_OBD_VERSION, rq_opc); if (!req) - return NULL; + return ERR_PTR(-ENOMEM); /* We are disconnecting, do not retry a failed DISCONNECT rpc if * it fails. We can get through the above with a down server