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)
commit94a80d63b245c66745c1d72b8154f67b597e3b89
treeea0e55809b0223d0d7c5ded4cf37c99bd3429f56
parent2eed7982d76f3a1627ba6536128a64b8e66ad189
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