Ignore:
Timestamp:
Nov 15, 2018, 8:18:18 AM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
b96abfd647154f10ea8f7fac68e25676636eded5, 9dd0bc27e3338bad08eaaf52d03265d2e7b9b4f7, 7027254d293cf3a8c888bd9f25052e96f458bc67, d164b840c3973e0793da1b3e4142b1711514b9ba
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.