Changeset 70555d5 in rtems-libbsd


Ignore:
Timestamp:
Nov 15, 2018, 8:18:18 AM (6 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5cb01f277962d3127d364bf871f799b34e6b6be6, 9a4ed64d5acc20cd3488a633bd78cad7d1708081
Children:
d4bf70e
Parents:
9f2c3ce
git-author:
Sebastian Huber <sebastian.huber@…> (11/15/18 08:18:18)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/15/18 08:18:48)
Message:

mutex: Avoid NULL pointer access in panic()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemsbsd/include/machine/rtems-bsd-muteximpl.h

    r9f2c3ce r70555d5  
    202202                panic("mutex unlock: %s: owner 0x%08" PRIx32
    203203                    " != executing 0x%08" PRIx32 "\n", m->queue.Queue.name,
    204                     owner->Object.id, executing->Object.id);
     204                    owner != NULL ? owner->Object.id : 0,
     205                    executing->Object.id);
    205206        }
    206207
Note: See TracChangeset for help on using the changeset viewer.