Changeset d5c1051 in mainline for uspace/srv/bd/vbd/disk.c


Ignore:
Timestamp:
2017-12-20T22:25:34Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
39b54fe
Parents:
8610c2c
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-20 22:22:29)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-20 22:25:34)
Message:

"Obviously harmless" error handling tweaks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/bd/vbd/disk.c

    r8610c2c rd5c1051  
    11141114        idx = part->lpart->index;
    11151115
    1116         rc = asprintf(&name, "%sp%u", part->disk->svc_name, idx);
    1117         if (rc < 0) {
     1116        if (asprintf(&name, "%sp%u", part->disk->svc_name, idx) < 0) {
    11181117                log_msg(LOG_DEFAULT, LVL_ERROR, "Out of memory.");
    11191118                return ENOMEM;
Note: See TracChangeset for help on using the changeset viewer.