]> 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)
commit88186c84aad5e47e763aa0de56388753bfc24a24
treeea0e55809b0223d0d7c5ded4cf37c99bd3429f56
parentbe680813375f257c1af107794df83cb8f135be41
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