]> git.baikalelectronics.ru Git - kernel.git/commit
net-sysfs: Fix memory leak in XPS configuration
authorAlexander Duyck <alexander.h.duyck@intel.com>
Thu, 31 May 2018 19:59:46 +0000 (15:59 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Jun 2018 03:02:42 +0000 (23:02 -0400)
commitcbec237f8f1e56a9958630b6380443cc8445f503
treefd092639acb8a0bc97e7e42489ab53df59b6b4f1
parent2ea69ba9692e21db4bc7e97592a8b7d39260b5e7
net-sysfs: Fix memory leak in XPS configuration

This patch reorders the error cases in showing the XPS configuration so
that we hold off on memory allocation until after we have verified that we
can support XPS on a given ring.

Fixes: a9d0e3824243 ("net: Add support for XPS with QoS via traffic classes")
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/net-sysfs.c