diff options
| author | Cong Wang <[email protected]> | 2017-10-24 22:30:37 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-10-26 08:45:58 +0000 |
| commit | c1eef220c1760762753b602c382127bfccee226d (patch) | |
| tree | e2a603686a2f0957a209cc553055b0364cbed72a /net/tipc | |
| parent | net: dsa: lan9303: Do not disable switch fabric port 0 at .probe (diff) | |
| download | kernel-c1eef220c1760762753b602c382127bfccee226d.tar.gz kernel-c1eef220c1760762753b602c382127bfccee226d.zip | |
vsock: always call vsock_init_tables()
Although CONFIG_VSOCKETS_DIAG depends on CONFIG_VSOCKETS,
vsock_init_tables() is not always called, it is called only
if other modules call its caller. Therefore if we only
enable CONFIG_VSOCKETS_DIAG, it would crash kernel on uninitialized
vsock_bind_table.
This patch fixes it by moving vsock_init_tables() to its own
module_init().
Fixes: 413a4317aca7 ("VSOCK: add sock_diag interface")
Reported-by: syzkaller bot
Cc: Stefan Hajnoczi <[email protected]>
Cc: Jorgen Hansen <[email protected]>
Signed-off-by: Cong Wang <[email protected]>
Reviewed-by: Stefan Hajnoczi <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tipc')
0 files changed, 0 insertions, 0 deletions
