Don't leak work if __mlx4_register_vlan(..) fails in
mlx4_master_immediate_activate_vlan_qos(..) MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D4203 Submitted by: Miles Olrich <miles.olrich@isilon.com> Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
f35c8b65a6
commit
ae9356f143
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=291047
@ -1784,6 +1784,7 @@ static int mlx4_master_immediate_activate_vlan_qos(struct mlx4_priv *priv,
|
||||
mlx4_warn((&priv->dev),
|
||||
"No vlan resources slave %d, port %d\n",
|
||||
slave, port);
|
||||
kfree(work);
|
||||
return err;
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user