Skip to content

Commit

Permalink
Revert "activate_mapping: fflush the buffered data to smp_affinity"
Browse files Browse the repository at this point in the history
This reverts commit 8bbc0ae.

Was causing a segfault:
#267
  • Loading branch information
Neil Horman committed Jul 9, 2023
1 parent 1953958 commit 4efc192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activate.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ static void activate_mapping(struct irq_info *info, void *data __attribute__((un

cpumask_scnprintf(buf, PATH_MAX, applied_mask);
ret = fprintf(file, "%s", buf);
if (ret < 0 || fflush(file)) {
if (ret < 0) {
log(TO_ALL, LOG_WARNING, "cannot change irq %i's affinity, add it to banned list", info->irq);
add_banned_irq(info->irq);
remove_one_irq_from_db(info->irq);
Expand Down

0 comments on commit 4efc192

Please sign in to comment.