]> git.baikalelectronics.ru Git - kernel.git/commit
net/netlabel/netlabel_kapi.c: add missing cleanup code
authorJulia Lawall <julia@diku.dk>
Thu, 11 Aug 2011 00:06:04 +0000 (00:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Aug 2011 12:52:57 +0000 (05:52 -0700)
commit651dc056a9723debb4328216f496a6d3f5e8fd56
treeea0e55809b0223d0d7c5ded4cf37c99bd3429f56
parentd2f14756777eebbc9cf136a8cd186ee6ff4ae283
net/netlabel/netlabel_kapi.c: add missing cleanup code

Call cipso_v4_doi_putdef in the case of the failure of the allocation of
entry.  Reverse the order of the error handling code at the end of the
function and insert more labels in order to reduce the number of
unnecessary calls to kfree.

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlabel/netlabel_kapi.c