Leon Romanovsky 8b2c7e7a3c 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>
2017-09-08 10:01:03 -07:00
..
2015-06-12 14:49:18 -04:00
2015-05-05 13:21:27 -04:00
2017-08-22 17:04:22 -04:00
2016-01-19 15:25:45 -05:00
2016-05-13 13:37:18 -04:00
2017-08-22 17:04:22 -04:00
2016-03-03 10:20:25 -05:00
2017-08-31 08:35:09 -04:00
2017-08-10 13:28:10 +03:00
2016-03-03 10:20:25 -05:00
2017-08-18 14:47:37 -04:00