diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-10 20:58:47 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-10 20:58:47 -0400 |
| commit | e5a5816f7875207cb0a0a7032e39a4686c5e10a4 (patch) | |
| tree | 6c80171401f4cd38685e19d2f36ac54560720d5f /net/netlabel/netlabel_mgmt.c | |
| parent | bdb21928512a860a60e6a24a849dc5b63cbaf96a (diff) | |
| parent | e35259a95331ae4a9146cc03ab49aad641cab957 (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (27 commits)
tun: Persistent devices can get stuck in xoff state
xfrm: Add a XFRM_STATE_AF_UNSPEC flag to xfrm_usersa_info
ipv6: missed namespace context in ipv6_rthdr_rcv
netlabel: netlink_unicast calls kfree_skb on error path by itself
ipv4: fib_trie: Fix lookup error return
tcp: correct kcalloc usage
ip: sysctl documentation cleanup
Documentation: clarify tcp_{r,w}mem sysctl docs
netfilter: nf_nat_snmp_basic: fix a range check in NAT for SNMP
netfilter: nf_conntrack_tcp: fix endless loop
libertas: fix memory alignment problems on the blackfin
zd1211rw: stop beacons on remove_interface
rt2x00: Disable synchronization during initialization
rc80211_pid: Fix fast_start parameter handling
sctp: Add documentation for sctp sysctl variable
ipv6: fix race between ipv6_del_addr and DAD timer
irda: Fix netlink error path return value
irda: New device ID for nsc-ircc
irda: via-ircc proper dma freeing
sctp: Mark the tsn as received after all allocations finish
...
Diffstat (limited to 'net/netlabel/netlabel_mgmt.c')
| -rw-r--r-- | net/netlabel/netlabel_mgmt.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/net/netlabel/netlabel_mgmt.c b/net/netlabel/netlabel_mgmt.c index 22c191267808..44be5d5261f4 100644 --- a/net/netlabel/netlabel_mgmt.c +++ b/net/netlabel/netlabel_mgmt.c | |||
| @@ -386,11 +386,7 @@ static int netlbl_mgmt_listdef(struct sk_buff *skb, struct genl_info *info) | |||
| 386 | rcu_read_unlock(); | 386 | rcu_read_unlock(); |
| 387 | 387 | ||
| 388 | genlmsg_end(ans_skb, data); | 388 | genlmsg_end(ans_skb, data); |
| 389 | 389 | return genlmsg_reply(ans_skb, info); | |
| 390 | ret_val = genlmsg_reply(ans_skb, info); | ||
| 391 | if (ret_val != 0) | ||
| 392 | goto listdef_failure; | ||
| 393 | return 0; | ||
| 394 | 390 | ||
| 395 | listdef_failure_lock: | 391 | listdef_failure_lock: |
| 396 | rcu_read_unlock(); | 392 | rcu_read_unlock(); |
| @@ -501,11 +497,7 @@ static int netlbl_mgmt_version(struct sk_buff *skb, struct genl_info *info) | |||
| 501 | goto version_failure; | 497 | goto version_failure; |
| 502 | 498 | ||
| 503 | genlmsg_end(ans_skb, data); | 499 | genlmsg_end(ans_skb, data); |
| 504 | 500 | return genlmsg_reply(ans_skb, info); | |
| 505 | ret_val = genlmsg_reply(ans_skb, info); | ||
| 506 | if (ret_val != 0) | ||
| 507 | goto version_failure; | ||
| 508 | return 0; | ||
| 509 | 501 | ||
| 510 | version_failure: | 502 | version_failure: |
| 511 | kfree_skb(ans_skb); | 503 | kfree_skb(ans_skb); |
