mlx5: fix possible crash during initialization
RSS configuration should not be freed when priv is NULL.
Fixes: 2f97422e77
("mlx5: support RSS hash update and get")
Signed-off-by: Or Ami <ora@mellanox.com>
This commit is contained in:
parent
0dc02cca8b
commit
2f636ae565
@ -274,6 +274,10 @@ Drivers
|
||||
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,
|
||||
|
@ -497,8 +497,10 @@ mlx5_pci_devinit(struct rte_pci_driver *pci_drv, struct rte_pci_device *pci_dev)
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user