user_data: fix validation test for returned struct members
commitcc6fe06678382f2839368551cbbccd828d986bf1
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 6 Aug 2018 09:33:24 +0000 (6 12:33 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Mon, 6 Aug 2018 09:33:24 +0000 (6 12:33 +0300)
tree2b743a6977c1a1702a165358867d109db542294e
parent8e2ff71fd8bd93313892e564366eafc1f6630d6b
user_data: fix validation test for returned struct members

The bug here can be seen from looking at the validation test.  The problem
is that p->y is both a parameter and a return and we were only recording
that it was a parameter.

This needs to be split out so it records that both the parameter
information and the return information.

Reported-by: Norbert Manthey <nmanthey@amazon.de>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
check_user_data2.c
validation/sm_user_data3.c