check_user_data: some user data was lost at the call boundary
commit7ad58daf3719acbaadaca6bcf3049c934e677958
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 28 Jun 2018 07:09:05 +0000 (28 10:09 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Thu, 28 Jun 2018 07:09:05 +0000 (28 10:09 +0300)
treedb222c41b14c2c1025041cfdb04ea3f783726d76
parenta931141960cee9a8ccc35549dd6fa76801d4f778
check_user_data: some user data was lost at the call boundary

This code was supposed to detect when we set the max to a unknown but
trusted value.  The problem is that if some callers are user data and the
rest are capped then it was setting it to not user data.

Reported-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
check_user_data2.c