diff options
author | Sven Eckelmann <sven@narfation.org> | 2012-08-21 01:37:26 +0400 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-10-29 12:42:36 +0400 |
commit | bd5b80d51a6c4a68f7d4b9b92c495329f47e53d4 (patch) | |
tree | 8650acb5b824f001651186e1357f4b7666437330 /net/batman-adv/main.h | |
parent | 8e7c15d6b5468f0dcdd887db1e5df88e629c00d6 (diff) | |
download | linux-bd5b80d51a6c4a68f7d4b9b92c495329f47e53d4.tar.xz |
batman-adv: Check return value of try_module_get
New operations should not be started when they need an increased module
reference counter and try_module_get failed.
This patch addresses Coverity #712284: Unchecked return value
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Diffstat (limited to 'net/batman-adv/main.h')
-rw-r--r-- | net/batman-adv/main.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/batman-adv/main.h b/net/batman-adv/main.h index 5c0be5b13415..9b94f05f8a17 100644 --- a/net/batman-adv/main.h +++ b/net/batman-adv/main.h @@ -150,8 +150,6 @@ extern struct workqueue_struct *batadv_event_workqueue; int batadv_mesh_init(struct net_device *soft_iface); void batadv_mesh_free(struct net_device *soft_iface); -void batadv_inc_module_count(void); -void batadv_dec_module_count(void); int batadv_is_my_mac(const uint8_t *addr); struct batadv_hard_iface * batadv_seq_print_text_primary_if_get(struct seq_file *seq); |