raw/skeleton: add missing check after setting attribute
authorMin Hu (Connor) <humin29@huawei.com>
Thu, 22 Apr 2021 06:21:46 +0000 (14:21 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 12 May 2021 14:27:33 +0000 (16:27 +0200)
commitb97012825dfad7d30bbd1fa99ec6115eba6135ce
tree348c285841806393945a4d4bb695e6d7cbe0cc81
parent6beb2d294743aad1488234109a3ad95a8d5a273f
raw/skeleton: add missing check after setting attribute

This patch adds return value check for setting an attribute.

Fixes: 88a81bcecb7b ("raw/skeleton: remove compile-time constant for device id")
Cc: stable@dpdk.org
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
drivers/raw/skeleton/skeleton_rawdev_test.c