RSS configuration should not be freed when priv is NULL.
Fixes:
2f97422e7759 ("mlx5: support RSS hash update and get")
Signed-off-by: Or Ami <ora@mellanox.com>
under stress with traffic, which might result in application launch
failure.
+* **mlx5: Fixed possible crash during initialization.**
+
+ A crash could occur when failing to allocate private device context.
+
* **aesni_mb: Fixed wrong return value when creating a device.**
cryptodev_aesni_mb_init() was returning the device id of the device created,
continue;
port_error:
- rte_free(priv->rss_conf);
- rte_free(priv);
+ if (priv) {
+ rte_free(priv->rss_conf);
+ rte_free(priv);
+ }
if (pd)
claim_zero(ibv_dealloc_pd(pd));
if (ctx)