diff options
-rw-r--r-- | net/batman-adv/translation-table.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/batman-adv/translation-table.c b/net/batman-adv/translation-table.c index ca537ed2dd0a..d58fd8b9c818 100644 --- a/net/batman-adv/translation-table.c +++ b/net/batman-adv/translation-table.c | |||
@@ -698,6 +698,9 @@ void tt_global_del_orig(struct bat_priv *bat_priv, | |||
698 | struct hlist_head *head; | 698 | struct hlist_head *head; |
699 | spinlock_t *list_lock; /* protects write access to the hash lists */ | 699 | spinlock_t *list_lock; /* protects write access to the hash lists */ |
700 | 700 | ||
701 | if (!hash) | ||
702 | return; | ||
703 | |||
701 | for (i = 0; i < hash->size; i++) { | 704 | for (i = 0; i < hash->size; i++) { |
702 | head = &hash->table[i]; | 705 | head = &hash->table[i]; |
703 | list_lock = &hash->list_locks[i]; | 706 | list_lock = &hash->list_locks[i]; |