]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'xen-netback-fixes'
authorDavid S. Miller <davem@davemloft.net>
Fri, 3 Mar 2017 17:36:15 +0000 (09:36 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Mar 2017 17:36:15 +0000 (09:36 -0800)
commitdf12b54806959696e4d6784bab7a1ad0da849a25
treedda0845041f4823dd34c32ae1e974aeff896055d
parentf53ea94a4d851d90f49308837bde7fc4dacc4775
parent3bb80848d7c6ff77d586b5041a1a323b21cab010
Merge branch 'xen-netback-fixes'

Paul Durrant says:

====================
xen-netback: update memory leak fix to avoid BUG

Commit db9629bf9898 "xen-netback: fix memory leaks on XenBus disconnect"
added missing code to fix a memory leak by calling vfree() in the
appropriate place.
Unfortunately subsequent commit 0fa8afe21089 "xen-netback: protect
resource cleaning on XenBus disconnect" then wrapped this call to vfree()
in a spin lock, leading to a BUG due to incorrect context.

Patch #1 makes the existing code more readable
Patch #2 fixes the problem
====================

Signed-off-by: David S. Miller <davem@davemloft.net>