diff options
author | Jon Maloy <jon.maloy@ericsson.com> | 2018-04-12 01:15:48 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-04-13 03:55:38 +0200 |
commit | 335b929b28aeb5bfc0698adb21deaf685b2982d1 (patch) | |
tree | f6978c9de4fd5c6d35c0a4faf3400df5a29820c1 /scripts/makelst | |
parent | strparser: Fix incorrect strp->need_bytes value. (diff) | |
download | linux-335b929b28aeb5bfc0698adb21deaf685b2982d1.tar.xz linux-335b929b28aeb5bfc0698adb21deaf685b2982d1.zip |
tipc: fix missing initializer in tipc_sendmsg()
The stack variable 'dnode' in __tipc_sendmsg() may theoretically
end up tipc_node_get_mtu() as an unitilalized variable.
We fix this by intializing the variable at declaration. We also add
a default else clause to the two conditional ones already there, so
that we never end up in the named function if the given address
type is illegal.
Reported-by: syzbot+b0975ce9355b347c1546@syzkaller.appspotmail.com
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts/makelst')
0 files changed, 0 insertions, 0 deletions