Changeset 70555d5 in rtems-libbsd


Ignore:
Timestamp:
Nov 15, 2018, 8:18:18 AM (22 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
b96abfd647154f10ea8f7fac68e25676636eded5, 7f47f2784138109b8363804c2aecd3d83231ab0f, 089780d2de7014a9c451bbd54cd3bcc64b58dfc7, 66019c3e788605ff63f210a677abd5c8edfb0aa0
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.