Blame SOURCES/0008-aio-fix-off-by-one-error-in-indexed-xlat-lookup.patch
|
|
a94321 |
From d0035c3031b0d5a1cbb300d698328d118af33d3e Mon Sep 17 00:00:00 2001
|
|
|
a94321 |
From: "Dmitry V. Levin" <ldv@altlinux.org>
|
|
|
a94321 |
Date: Sun, 23 Dec 2018 22:12:36 +0000
|
|
|
a94321 |
Subject: [PATCH 08/27] aio: fix off-by-one error in indexed xlat lookup
|
|
|
a94321 |
|
|
|
a94321 |
* aio.c (tprint_lio_opcode): Decrement xlat size by one to account
|
|
|
a94321 |
for XLAT_END as other users of indexed xlats do.
|
|
|
a94321 |
|
|
|
a94321 |
Fixes: v4.24~71 "aio: print IOCB_CMD_* using xlat"
|
|
|
a94321 |
---
|
|
|
a94321 |
aio.c | 2 +-
|
|
|
a94321 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
a94321 |
|
|
|
a94321 |
diff --git a/aio.c b/aio.c
|
|
|
a94321 |
index a07d8eb..24ad69f 100644
|
|
|
a94321 |
--- a/aio.c
|
|
|
a94321 |
+++ b/aio.c
|
|
|
a94321 |
@@ -70,7 +70,7 @@ tprint_lio_opcode(unsigned int cmd)
|
|
|
a94321 |
[IOCB_CMD_PWRITEV] = SUB_VECTOR,
|
|
|
a94321 |
};
|
|
|
a94321 |
|
|
|
a94321 |
- printxval_indexn_ex(ARRSZ_PAIR(aio_cmds), cmd, "IOCB_CMD_???",
|
|
|
a94321 |
+ printxval_indexn_ex(ARRSZ_PAIR(aio_cmds) - 1, cmd, "IOCB_CMD_???",
|
|
|
a94321 |
XLAT_STYLE_FMT_U);
|
|
|
a94321 |
|
|
|
a94321 |
return cmd < ARRAY_SIZE(subs) ? subs[cmd] : SUB_NONE;
|
|
|
a94321 |
--
|
|
|
a94321 |
2.1.4
|
|
|
a94321 |
|