[dpdk-dev] [PATCH] raw/skeleton: fix return value check
Thomas Monjalon
thomas at monjalon.net
Wed May 12 16:29:23 CEST 2021
22/04/2021 08:21, Min Hu (Connor):
> This patch adds return value check for setting an attribute.
>
> Fixes: 88a81bcecb7b ("raw/skeleton: remove compile-time constant for device id")
> Cc: stable at dpdk.org
>
> Signed-off-by: Min Hu (Connor) <humin29 at huawei.com>
> ---
> ret = rte_rawdev_set_attr(test_dev_id, "Test2", (uintptr_t)dummy_value);
> + RTE_TEST_ASSERT(!ret, "Unable to set an attribute (Test2)");
Applied with title
"raw/skeleton: add missing check after setting attribute"
thanks
More information about the dev
mailing list