[LU-6518] Unhandled possible allocation failure in lustre_start_mgc Created: 27/Apr/15  Updated: 02/Jun/16  Resolved: 02/Jun/16

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.9.0

Type: Bug Priority: Minor
Reporter: Oleg Drokin Assignee: WC Triage
Resolution: Fixed Votes: 0
Labels: easy, patch

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Smatch highlighted this in lustre_start_mgc:

        /* Random uuid for MGC allows easier reconnects */
        OBD_ALLOC_PTR(uuid);
        ll_generate_random_uuid(uuidc);
        class_uuid_unparse(uuidc, uuid);

        /* Start the MGC */
        rc = lustre_start_simple(mgcname, LUSTRE_MGC_NAME,
                                 (char *)uuid->uuid, LUSTRE_MGS_OBDNAME,
                                 niduuid, NULL, NULL);
        OBD_FREE_PTR(uuid);


 Comments   
Comment by Gerrit Updater [ 06/Dec/15 ]

Parinay Kondekar (parinay.kondekar@seagate.com) uploaded a new patch: http://review.whamcloud.com/17493
Subject: LU-6518 Unhandled possible allocation failure in lustre_start_mgc
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 7f6df533d1634d37483ec5ad1aaadf3b441ebf62

Comment by Gerrit Updater [ 02/Jun/16 ]

Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/17493/
Subject: LU-6518 obd: Unhandled possible allocation failure in lustre_start_mgc
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 66430ae381add9095d421887a4cf63fbe7f71407

Comment by Peter Jones [ 02/Jun/16 ]

Landed for 2.9

Generated at Sat Feb 10 02:00:54 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.