batman-adv: Check return value of try_module_get
authorSven Eckelmann <sven@narfation.org>
Mon, 20 Aug 2012 21:37:26 +0000 (23:37 +0200)
committerAntonio Quartulli <ordex@autistici.org>
Mon, 29 Oct 2012 08:42:36 +0000 (09:42 +0100)
commitbd5b80d51a6c4a68f7d4b9b92c495329f47e53d4
tree8650acb5b824f001651186e1357f4b7666437330
parent8e7c15d6b5468f0dcdd887db1e5df88e629c00d6
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>
net/batman-adv/debugfs.c
net/batman-adv/icmp_socket.c
net/batman-adv/main.c
net/batman-adv/main.h