Merge branch 'master' of git://git.infradead.org/users/pcmoore/lblnet-2.6

+29 -4
+4 -3
net/ipv4/cipso_ipv4.c
··· 2063 u32 opt_len; 2064 int len_delta; 2065 2066 - buf_len = cipso_v4_genopt(buf, buf_len, doi_def, secattr); 2067 - if (buf_len < 0) 2068 - return buf_len; 2069 opt_len = (buf_len + 3) & ~3; 2070 2071 /* we overwrite any existing options to ensure that we have enough
··· 2063 u32 opt_len; 2064 int len_delta; 2065 2066 + ret_val = cipso_v4_genopt(buf, buf_len, doi_def, secattr); 2067 + if (ret_val < 0) 2068 + return ret_val; 2069 + buf_len = ret_val; 2070 opt_len = (buf_len + 3) & ~3; 2071 2072 /* we overwrite any existing options to ensure that we have enough
+2
net/netlabel/netlabel_addrlist.c
··· 315 * Audit Helper Functions 316 */ 317 318 /** 319 * netlbl_af4list_audit_addr - Audit an IPv4 address 320 * @audit_buf: audit buffer ··· 387 } 388 } 389 #endif /* IPv6 */
··· 315 * Audit Helper Functions 316 */ 317 318 + #ifdef CONFIG_AUDIT 319 /** 320 * netlbl_af4list_audit_addr - Audit an IPv4 address 321 * @audit_buf: audit buffer ··· 386 } 387 } 388 #endif /* IPv6 */ 389 + #endif /* CONFIG_AUDIT */
+22
net/netlabel/netlabel_addrlist.h
··· 120 struct netlbl_af4list *netlbl_af4list_search_exact(__be32 addr, 121 __be32 mask, 122 struct list_head *head); 123 void netlbl_af4list_audit_addr(struct audit_buffer *audit_buf, 124 int src, const char *dev, 125 __be32 addr, __be32 mask); 126 127 #if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) 128 ··· 189 struct netlbl_af6list *netlbl_af6list_search_exact(const struct in6_addr *addr, 190 const struct in6_addr *mask, 191 struct list_head *head); 192 void netlbl_af6list_audit_addr(struct audit_buffer *audit_buf, 193 int src, 194 const char *dev, 195 const struct in6_addr *addr, 196 const struct in6_addr *mask); 197 #endif /* IPV6 */ 198 199 #endif
··· 120 struct netlbl_af4list *netlbl_af4list_search_exact(__be32 addr, 121 __be32 mask, 122 struct list_head *head); 123 + 124 + #ifdef CONFIG_AUDIT 125 void netlbl_af4list_audit_addr(struct audit_buffer *audit_buf, 126 int src, const char *dev, 127 __be32 addr, __be32 mask); 128 + #else 129 + static inline void netlbl_af4list_audit_addr(struct audit_buffer *audit_buf, 130 + int src, const char *dev, 131 + __be32 addr, __be32 mask) 132 + { 133 + return; 134 + } 135 + #endif 136 137 #if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) 138 ··· 179 struct netlbl_af6list *netlbl_af6list_search_exact(const struct in6_addr *addr, 180 const struct in6_addr *mask, 181 struct list_head *head); 182 + 183 + #ifdef CONFIG_AUDIT 184 void netlbl_af6list_audit_addr(struct audit_buffer *audit_buf, 185 int src, 186 const char *dev, 187 const struct in6_addr *addr, 188 const struct in6_addr *mask); 189 + #else 190 + static inline void netlbl_af6list_audit_addr(struct audit_buffer *audit_buf, 191 + int src, 192 + const char *dev, 193 + const struct in6_addr *addr, 194 + const struct in6_addr *mask) 195 + { 196 + return; 197 + } 198 + #endif 199 #endif /* IPV6 */ 200 201 #endif
+1 -1
net/netlabel/netlabel_mgmt.c
··· 265 static int netlbl_mgmt_listentry(struct sk_buff *skb, 266 struct netlbl_dom_map *entry) 267 { 268 - int ret_val; 269 struct nlattr *nla_a; 270 struct nlattr *nla_b; 271 struct netlbl_af4list *iter4;
··· 265 static int netlbl_mgmt_listentry(struct sk_buff *skb, 266 struct netlbl_dom_map *entry) 267 { 268 + int ret_val = 0; 269 struct nlattr *nla_a; 270 struct nlattr *nla_b; 271 struct netlbl_af4list *iter4;