[LTP] [PATCH 2/2] ioprio: Use IOPRIO_PRIO_NUM to check prio range

Linus Walleij linus.walleij@linaro.org
Wed Jun 7 08:44:39 CEST 2023


On Mon, Jun 5, 2023 at 6:41 AM Damien Le Moal <dlemoal@kernel.org> wrote:

> Use the macro IOPRIO_PRIO_NUM in prio_in_range() to check the upper
> bound of the valid range for priority levels. Similarly, in the test
> case ioprio_set03, use this macro to check for failures when the user
> attempts using a priority level out of range.
>
> Signed-off-by: Damien Le Moal <dlemoal@kernel.org>

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Walleij


More information about the ltp mailing list