ethtool: Fix filter addition when caching n-tuple filters
authorPeter Waskiewicz <peter.p.waskiewicz.jr@intel.com>
Fri, 12 Feb 2010 13:48:05 +0000 (13:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Feb 2010 05:49:47 +0000 (21:49 -0800)
commite858911804f5ecadb41afd61582a11f68d416328
tree71bf7f7ad187b2b06fe4e5d3c0494fdfaf67705d
parent02b1bae5e1c0f810168037be0134685085e95e88
ethtool: Fix filter addition when caching n-tuple filters

We can allow a filter to be added successfully to the underlying
hardware, but still return an error if the cached list memory
allocation fails.  This patch fixes that condition.

Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/ethtool.c