[AX.25]: Mark all kmalloc users __must_check
The recent fix 0506d4068b 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>
This commit is contained in:
committed by
David S. Miller
parent
bd2b334378
commit
c9266b99e2
@@ -1088,8 +1088,8 @@ out:
|
||||
/*
|
||||
* FIXME: nonblock behaviour looks like it may have a bug.
|
||||
*/
|
||||
static int ax25_connect(struct socket *sock, struct sockaddr *uaddr,
|
||||
int addr_len, int flags)
|
||||
static int __must_check ax25_connect(struct socket *sock,
|
||||
struct sockaddr *uaddr, int addr_len, int flags)
|
||||
{
|
||||
struct sock *sk = sock->sk;
|
||||
ax25_cb *ax25 = ax25_sk(sk), *ax25t;
|
||||
|
||||
@@ -71,7 +71,7 @@ void ax25_rt_device_down(struct net_device *dev)
|
||||
write_unlock(&ax25_route_lock);
|
||||
}
|
||||
|
||||
static int ax25_rt_add(struct ax25_routes_struct *route)
|
||||
static int __must_check ax25_rt_add(struct ax25_routes_struct *route)
|
||||
{
|
||||
ax25_route *ax25_rt;
|
||||
ax25_dev *ax25_dev;
|
||||
|
||||
Reference in New Issue
Block a user