diff options
author | Leon Romanovsky <leon@kernel.org> | 2017-09-08 13:02:26 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-09-08 20:01:03 +0300 |
commit | 8b2c7e7a3cb2093bf3257c146c5822437fdf3124 (patch) | |
tree | 1b923f9e883b12a36643c43211213a5aec8e3d63 /scripts/genksyms/lex.l | |
parent | 5969d1bb3082b41eba8fd2c826559abe38ccb6df (diff) | |
download | linux-8b2c7e7a3cb2093bf3257c146c5822437fdf3124.tar.xz |
RDAM/netlink: Fix out-of-bound access while checking message validity
The netlink message sent with type == 0, which doesn't have any client
behind it, caused to the overflow in max_num_ops array.
Fix it by declaring zero number of ops for the first client.
Fixes: c9901724a2f1 ("RDMA/netlink: Remove netlink clients infrastructure")
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/genksyms/lex.l')
0 files changed, 0 insertions, 0 deletions