function_hooks: hack around invalid input from the DB
commitc655d64fcd9597ec146855896f2138727b5d4068
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 15 Jun 2016 18:49:58 +0000 (15 21:49 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Wed, 15 Jun 2016 18:49:58 +0000 (15 21:49 +0300)
tree766e736f61ec76762cdf5c5aa505bb59d9efc611
parent987a0348b45ae8d82cf0809871e48017f1c26a59
function_hooks: hack around invalid input from the DB

I have a bug somewhere so it says if you pass MSG_DONTWAIT to
netlink_unicast() then it never returns.

err = netlink_unicast(sk, skb, portid, MSG_DONTWAIT);

Later it complains that err is uninitialized.

We can hack around this by treating that as a special case and setting
"err" to unknown.

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