Skip to content

Commit

Permalink
Merge pull request #331 from liutgnu/master
Browse files Browse the repository at this point in the history
Use EPERM instead of EIO when try setting irq affinity fails
  • Loading branch information
nhorman authored Oct 18, 2024
2 parents dc3c2fd + 3685d33 commit b4b6f19
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions activate.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ static void activate_mapping(struct irq_info *info, void *data __attribute__((un
info->moved = 0; /*migration is done*/
return;
error:
/* Use EPERM as the explaination for EIO */
errsave = (errsave == EIO) ? EPERM : errsave;
log(TO_ALL, LOG_WARNING,
"Cannot change IRQ %i affinity: %s\n",
info->irq, strerror(errsave));
Expand Down

0 comments on commit b4b6f19

Please sign in to comment.