Changeset 70555d5 in rtems-libbsd


Ignore:
Timestamp:
Nov 15, 2018, 8:18:18 AM (5 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
647dd08ae2aa69b935c2847ea450fb824322ecae, c6261f97870562d4c797cfb1ff1ba0affb85a916
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.