Skip to content

Commit

Permalink
Merge pull request #10 from opnmind/fix_missing_disk_size_older_kernel
Browse files Browse the repository at this point in the history
Fix missing disk size older kernel
  • Loading branch information
opnmind authored Jul 19, 2023
2 parents ed3ef1a + 624248a commit 90022d8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions epfront_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2862,7 +2862,7 @@ static int epfront_scsi_queue_command(struct scsi_cmnd *sc, void (*done)(struct
sc->result = (DID_BAD_TARGET << 16);

#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0)) && (CONFIG_UBUNTU_HOST_MODULE != 1) || ((CONFIG_SUSE_VERSION == 15) && (CONFIG_SUSE_PATCHLEVEL == 5))
scsi_done(sc);
scsi_done(sc); /* Notify system DONE */
#else
done(sc);
#endif
Expand All @@ -2878,9 +2878,10 @@ static int epfront_scsi_queue_command(struct scsi_cmnd *sc, void (*done)(struct
}

#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0)) && (CONFIG_UBUNTU_HOST_MODULE != 1) || ((CONFIG_SUSE_VERSION == 15) && (CONFIG_SUSE_PATCHLEVEL == 5))
scsi_done(sc);
/* Save done function not needed anymore */
#else
sc->scsi_done(sc);
/* Save done function into scsi_cmnd struct */
sc->scsi_done = done;
#endif

//save c for abort
Expand Down

0 comments on commit 90022d8

Please sign in to comment.