Skip to content

Commit

Permalink
Fix segmentation fault that sometimes occurs on release builds
Browse files Browse the repository at this point in the history
Fixes SWDEV-216441

Change-Id: I3ea01a4edd14000a103de751757dfaadc7d358bb
  • Loading branch information
Chris Freehill authored and Chris Freehill committed Feb 24, 2020
1 parent 2d6e151 commit 0bf81ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/rocm_smi/rocm_smi_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
#include <string>

#define DBG_FILE_ERROR(FN, WR_STR) \
if (env_->debug_output_bitfield & RSMI_DEBUG_SYSFS_FILE_PATHS) { \
if (env_ && env_->debug_output_bitfield & RSMI_DEBUG_SYSFS_FILE_PATHS) { \
std::cout << "*****" << __FUNCTION__ << std::endl; \
std::cout << "*****Opening file: " << (FN) << std::endl; \
if ((WR_STR) != nullptr) { \
Expand Down

0 comments on commit 0bf81ed

Please sign in to comment.