regex/mlx5: fix crash on initialization failure
authorParav Pandit <parav@mellanox.com>
Mon, 27 Jul 2020 17:47:10 +0000 (20:47 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 28 Jul 2020 16:52:11 +0000 (18:52 +0200)
commit1db6ebd4ef587b858e0a6b5b557b5b63be6a2c13
tree64600cdbafa84b66365429091a1a763fa5f8375f
parent4c093ffa5b9bdebad9ef14ef4136624a7f44b0f6
regex/mlx5: fix crash on initialization failure

When fail to initialize the device, avoid segmentation fault while
accessing uninitialized priv.

Fixes: cfc672a90b74 ("regex/mlx5: support probing")

Signed-off-by: Parav Pandit <parav@mellanox.com>
drivers/regex/mlx5/mlx5_regex.c