mbox series

[0/2] mac80211: Fix incorrect usage of rhashtable walk API

Message ID 20190213050551.x3jffq3ipghw6g2m@gondor.apana.org.au (mailing list archive)
Headers show
Series mac80211: Fix incorrect usage of rhashtable walk API | expand

Message

Herbert Xu Feb. 13, 2019, 5:05 a.m. UTC
Hi:

This patch fixes a number of issues with the use of the rhashtable API
in mac80211.  First of all it converts the use of rashtable walks over
to a simple linked list.  This is because an rhashtable walk is
inherently unstable and not meant for uses that require stability,
e.g., when you're trying to lookup an object to delete.

It also fixes a potential memory leak when the rhashtable insertion
fails (which can occur due to OOM).

Thanks,