diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2006-12-14 18:52:13 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-18 00:59:14 -0500 |
commit | a3d384029aa304f8f3f5355d35f0ae274454f7cd (patch) | |
tree | 6bdb628b439cde292317fa5e89e14977899855a5 /include | |
parent | a159aaa328a02b0189774c58ae7d917b25d26852 (diff) |
[AX.25]: Fix unchecked rose_add_loopback_neigh uses
rose_add_loopback_neigh uses kmalloc and the callers were ignoring the
error value. Rewrite to let the caller deal with the allocation. This
allows the use of static allocation of kmalloc use entirely.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/rose.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/rose.h b/include/net/rose.h index 0143796a3e37..4c05a88b921b 100644 --- a/include/net/rose.h +++ b/include/net/rose.h | |||
@@ -188,12 +188,12 @@ extern void rose_kick(struct sock *); | |||
188 | extern void rose_enquiry_response(struct sock *); | 188 | extern void rose_enquiry_response(struct sock *); |
189 | 189 | ||
190 | /* rose_route.c */ | 190 | /* rose_route.c */ |
191 | extern struct rose_neigh *rose_loopback_neigh; | 191 | extern struct rose_neigh rose_loopback_neigh; |
192 | extern struct file_operations rose_neigh_fops; | 192 | extern struct file_operations rose_neigh_fops; |
193 | extern struct file_operations rose_nodes_fops; | 193 | extern struct file_operations rose_nodes_fops; |
194 | extern struct file_operations rose_routes_fops; | 194 | extern struct file_operations rose_routes_fops; |
195 | 195 | ||
196 | extern int __must_check rose_add_loopback_neigh(void); | 196 | extern void rose_add_loopback_neigh(void); |
197 | extern int __must_check rose_add_loopback_node(rose_address *); | 197 | extern int __must_check rose_add_loopback_node(rose_address *); |
198 | extern void rose_del_loopback_node(rose_address *); | 198 | extern void rose_del_loopback_node(rose_address *); |
199 | extern void rose_rt_device_down(struct net_device *); | 199 | extern void rose_rt_device_down(struct net_device *); |