Author: ngie
Date: Thu Nov 19 01:08:16 2015
New Revision: 291047
URL: https://svnweb.freebsd.org/changeset/base/291047

Log:
  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 <[email protected]>
  Sponsored by: EMC / Isilon Storage Division

Modified:
  head/sys/ofed/drivers/net/mlx4/cmd.c

Modified: head/sys/ofed/drivers/net/mlx4/cmd.c
==============================================================================
--- head/sys/ofed/drivers/net/mlx4/cmd.c        Thu Nov 19 00:45:36 2015        
(r291046)
+++ head/sys/ofed/drivers/net/mlx4/cmd.c        Thu Nov 19 01:08:16 2015        
(r291047)
@@ -1784,6 +1784,7 @@ static int mlx4_master_immediate_activat
                                mlx4_warn((&priv->dev),
                                          "No vlan resources slave %d, port 
%d\n",
                                          slave, port);
+                               kfree(work);
                                return err;
                        }
                } else {
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to