diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2015-12-02 03:08:31 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2015-12-02 03:08:31 +0000 |
commit | 7f926639212e5ce0069c65b8827455f7a265cf33 (patch) | |
tree | 0f11fecd318e0b7a76136892c0c23b01f8a141e8 /lib/sg_cmds_extra.c | |
parent | 0c25917aa05ec4c51c6b29da5734e49ad6fe0f2a (diff) | |
download | sg3_utils-7f926639212e5ce0069c65b8827455f7a265cf33.tar.gz |
fix some unaligned gremlins
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@652 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'lib/sg_cmds_extra.c')
-rw-r--r-- | lib/sg_cmds_extra.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sg_cmds_extra.c b/lib/sg_cmds_extra.c index e20bfa4a..23ed1f60 100644 --- a/lib/sg_cmds_extra.c +++ b/lib/sg_cmds_extra.c @@ -128,7 +128,7 @@ sg_ll_get_lba_status(int sg_fd, uint64_t start_llba, void * resp, getLbaStatCmd[1] = GET_LBA_STATUS_SA; sg_put_unaligned_be64(start_llba, getLbaStatCmd + 2); - sg_put_unaligned_be32((uint32_t)alloc_len, getLbaStatCmd + 2); + sg_put_unaligned_be32((uint32_t)alloc_len, getLbaStatCmd + 10); if (verbose) { pr2ws(" Get LBA status cmd: "); for (k = 0; k < SERVICE_ACTION_IN_16_CMDLEN; ++k) |