]> git.baikalelectronics.ru Git - kernel.git/commit
xen-netback: fix memory leaks on XenBus disconnect
authorIgor Druzhinin <igor.druzhinin@citrix.com>
Tue, 17 Jan 2017 20:49:37 +0000 (20:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Jan 2017 20:11:20 +0000 (15:11 -0500)
commitdb9629bf9898649ef3f98754bce7cc0bf8ad46f5
tree043bc0debf7bbdc8b45c8e82ac3a05cb33207b6b
parent8adf9e92913a715ec4ef0808d6f4836b9dab8b2d
xen-netback: fix memory leaks on XenBus disconnect

Eliminate memory leaks introduced several years ago by cleaning the
queue resources which are allocated on XenBus connection event. Namely, queue
structure array and pages used for IO rings.

Signed-off-by: Igor Druzhinin <igor.druzhinin@citrix.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netback/xenbus.c