function_hooks: don't call both DB and implied return hooks callback
commit12bbef5ad4df956824608eb1d05fe388861e3ddf
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 1 Sep 2021 11:35:24 +0000 (1 14:35 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Wed, 1 Sep 2021 11:35:24 +0000 (1 14:35 +0300)
treeb63a621749a9076d89c803c2030dc28e81161600
parent2b5f6ae6760d02bbd8932422d57b2b39a2e7be35
function_hooks: don't call both DB and implied return hooks callback

One problem with the param/key API is that you register the same call
back for both the implied return and the DB return and it gets called
twice resulting in a "double lock" or whatever.  The implied return
should trump the DB return and only be called once.  So it needs to be
tracked in smatch_function_hooks.c

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch_function_hooks.c