From: Vlad Buslov <vla...@mellanox.com> Date: Wed, 10 Jul 2019 20:12:29 +0300
> After recent refactoring of block offlads infrastructure, indr_dev->block > pointer is dereferenced before it is verified to be non-NULL. Example stack > trace where this behavior leads to NULL-pointer dereference error when > creating vxlan dev on system with mlx5 NIC with offloads enabled: ... > Introduce new function tcf_block_non_null_shared() that verifies block > pointer before dereferencing it to obtain index. Use the function in > tc_indr_block_ing_cmd() to prevent NULL pointer dereference. > > Fixes: 955bcb6ea0df ("drivers: net: use flow block API") > Signed-off-by: Vlad Buslov <vla...@mellanox.com> Applied.