diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2006-12-14 15:49:28 -0800 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-17 21:59:07 -0800 |
commit | c9266b99e2def0a456766220df09713f8e765891 (patch) | |
tree | 4685070018632e00437fbb368b28d6cc1ebc467e /net/rose | |
parent | bd2b334378530f6dbe03f6325b8c885524e298a3 (diff) | |
download | linux-c9266b99e2def0a456766220df09713f8e765891.tar.gz linux-c9266b99e2def0a456766220df09713f8e765891.tar.xz |
[AX.25]: Mark all kmalloc users __must_check
The recent fix 0506d4068bad834aab1141b5dc5e748eb175c6b3 made obvious that
error values were not being propagated through the AX.25 stack. To help
with that this patch marks all kmalloc users in the AX.25, NETROM and
ROSE stacks as __must_check.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rose')
-rw-r--r-- | net/rose/rose_route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rose/rose_route.c b/net/rose/rose_route.c index 7252344779a0..d02985b00a20 100644 --- a/net/rose/rose_route.c +++ b/net/rose/rose_route.c @@ -52,7 +52,7 @@ struct rose_neigh *rose_loopback_neigh; * Add a new route to a node, and in the process add the node and the * neighbour if it is new. */ -static int rose_add_node(struct rose_route_struct *rose_route, +static int __must_check rose_add_node(struct rose_route_struct *rose_route, struct net_device *dev) { struct rose_node *rose_node, *rose_tmpn, *rose_tmpp; |