Skip to content

Commit

Permalink
bugfix: this function needs to return error code rc instead of return…
Browse files Browse the repository at this point in the history
…ing the log page length, because returning the page length will cause all function callers to erroneously determine that the SCSI command (ioctl) has failed
  • Loading branch information
richard42 committed May 3, 2023
1 parent d1c99a4 commit 4a88641
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tape_drivers/linux/lin_tape/lin_tape_ibmtape.c
Original file line number Diff line number Diff line change
Expand Up @@ -2237,7 +2237,7 @@ int lin_tape_ibmtape_logsense(void *device, const uint8_t page, const uint8_t su

ltfs_profiler_add_entry(priv->profiler, NULL, TAPEBEND_REQ_EXIT(REQ_TC_LOGSENSE));

return log_page.len;
return rc;
}

/**
Expand Down

0 comments on commit 4a88641

Please sign in to comment.