~ubuntu-branches/ubuntu/trusty/openipmi/trusty-updates

« back to all changes in this revision

Viewing changes to lib/pef.c

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2009-11-05 12:52:52 UTC
  • mfrom: (1.1.6 upstream) (2.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091105125252-bgdryncucdf3c32i
Tags: 2.0.16-1ubuntu1
* Sync with debian.
* debian/control: 
  - changed maintainer to match DebianMaintainerField spec.
* debian/rules, debian/openipmi.init:
  - added init script

Show diffs side-by-side

added added

removed removed

Lines of Context:
337
337
 
338
338
    if (pef->ready_cb)
339
339
        pef->ready_cb(pef, rv, pef->ready_cb_data);
 
340
 
 
341
    pef_put(pef);
340
342
}
341
343
 
342
344
static int
349
351
    msg.cmd = IPMI_GET_PEF_CAPABILITIES_CMD;
350
352
    msg.data_len = 0;
351
353
    msg.data = NULL;
 
354
    pef_get(pef);
352
355
    rv = ipmi_mc_send_command(mc, 0,
353
356
                              &msg, handle_pef_capabilities, pef);
354
 
    if (rv)
 
357
    if (rv) {
355
358
        ipmi_log(IPMI_LOG_ERR_INFO,
356
359
                 "pef_start_capability_fetch: could not send cmd: %x",
357
360
                 rv);
 
361
        pef_put(pef);
 
362
    }
358
363
 
359
364
    return rv;
360
365
}