mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
[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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
bd2b334378
commit
c9266b99e2
6 changed files with 17 additions and 14 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue