Skip to content

Commit

Permalink
MI mem_rpm_dump: Do not crash if RPM mem is disabled
Browse files Browse the repository at this point in the history
(cherry picked from commit b5a533f)
  • Loading branch information
liviuchircu committed Jan 14, 2020
1 parent ef46f6e commit 1352363
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mem/rpm_mem.h
Expand Up @@ -305,6 +305,9 @@ inline static void rpm_free(void *_p)

inline static void rpm_status(void)
{
if (!RPM_STATUS || !rpm_block)
return;

rpm_lock();
RPM_STATUS(rpm_block);
rpm_unlock();
Expand Down

0 comments on commit 1352363

Please sign in to comment.