Skip to content

Commit 9802d7b

Browse files
akhilesh-rn-wdcdwsuse
authored andcommitted
linux: Update size when telemetry controller initiated data is unavailable
Fix to update size for telemetry log page when telemetry controller initiated data is unavailable.
1 parent 19a957f commit 9802d7b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/nvme/linux.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ static int nvme_get_telemetry_log(int fd, bool create, bool ctrl, bool rae,
205205
telem = log;
206206
if (ctrl && !telem->ctrlavail) {
207207
*buf = log;
208+
*size = xfer;
208209
return 0;
209210
}
210211

0 commit comments

Comments
 (0)