raw/skeleton: fix test of attribute set/get
authorThinh Tran <thinhtr@linux.vnet.ibm.com>
Tue, 11 Jun 2019 21:44:12 +0000 (16:44 -0500)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 1 Jul 2019 17:52:52 +0000 (19:52 +0200)
commitdcb1595956e366a15f9b33998b37172ee29da1e1
tree1b655f143f32d405e9cd6b6e7fbe710d1636312d
parent5348806e43bdaf5e5b12a1b9b9f5c816c9d1139a
raw/skeleton: fix test of attribute set/get

Using memory on the stack instead of on the heap by calling malloc
also avoid memory leak in case of test case failures

Fixes: 88d0e47880ec ("raw/skeleton: fix memory leak on test failure")
Cc: stable@dpdk.org
Signed-off-by: Thinh Tran <thinhtr@linux.vnet.ibm.com>
Acked-by: Shreyansh Jain <shreyansh.jain@nxp.com>
drivers/raw/skeleton_rawdev/skeleton_rawdev_test.c