]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 5 Sep 2018 08:30:45 +0000 (10:30 +0200)
commit6127c42897d59b665006ff45132715c27450da26
treec1935fc09dafd711a560322d9189458f7fc08ea6
parent72054bb786cea0bef01018bd34b3df2c1684be16
net-sysfs: Fix memory leak in XPS configuration

BugLink: http://bugs.launchpad.net/bugs/1789666
[ Upstream commit 664088f8d68178809b848ca450f2797efb34e8e7 ]

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: 184c449f91fe ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
net/core/net-sysfs.c