diff options
author | Ralf Baechle | 2006-12-15 00:49:28 +0100 |
---|---|---|
committer | David S. Miller | 2006-12-18 06:59:07 +0100 |
commit | c9266b99e2def0a456766220df09713f8e765891 (patch) | |
tree | 4685070018632e00437fbb368b28d6cc1ebc467e /net/rose/rose_route.c | |
parent | [TG3]: replace kmalloc+memset with kzalloc (diff) | |
download | kernel-qcow2-linux-c9266b99e2def0a456766220df09713f8e765891.tar.gz kernel-qcow2-linux-c9266b99e2def0a456766220df09713f8e765891.tar.xz kernel-qcow2-linux-c9266b99e2def0a456766220df09713f8e765891.zip |
[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/rose_route.c')
-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; |