Skip to content

Commit 7075f7a

Browse files
committed
initialize ctrl_dir in unload_device_tree
1 parent 25e654a commit 7075f7a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/common.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,7 @@ int unload_device_tree(const char *name)
398398
char line[256];
399399
char *slot_line;
400400

401+
build_path("/sys/devices", "bone_capemgr", ctrl_dir, sizeof(ctrl_dir));
401402
snprintf(slots, sizeof(slots), "%s/slots", ctrl_dir);
402403

403404
file = fopen(slots, "r+");

0 commit comments

Comments
 (0)