diff options
author | Hans Rosenfeld <hans.rosenfeld@nexenta.com> | 2015-11-19 16:25:11 +0100 |
---|---|---|
committer | Hans Rosenfeld <hans.rosenfeld@nexenta.com> | 2015-11-19 23:50:35 +0100 |
commit | 9898bbdb3aee66342820dd5570925a6ad4783d08 (patch) | |
tree | 8ec848f54b4536082bc04f7758b5724fd4330734 | |
parent | 75614fd9696d97522ed7ed8009a66eb3544d61ad (diff) | |
download | illumos-gate-9898bbdb3aee66342820dd5570925a6ad4783d08.tar.gz |
6466 off-by-one in nvme_get_logpage()
Reviewed by: Dan McDonald <danmcd@omniti.com>
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Garrett D'Amore <garrett@damore.org>
Approved by: Robert Mustacchi <rm@joyent.com>
-rw-r--r-- | usr/src/uts/common/io/nvme/nvme.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/uts/common/io/nvme/nvme.c b/usr/src/uts/common/io/nvme/nvme.c index fc864b791e..9b77410470 100644 --- a/usr/src/uts/common/io/nvme/nvme.c +++ b/usr/src/uts/common/io/nvme/nvme.c @@ -1448,7 +1448,7 @@ nvme_get_logpage(nvme_t *nvme, uint8_t logpage, ...) va_end(ap); - getlogpage.b.lp_numd = bufsize / sizeof (uint32_t); + getlogpage.b.lp_numd = bufsize / sizeof (uint32_t) - 1; cmd->nc_sqe.sqe_cdw10 = getlogpage.r; |