[PATCH] nl80211: Zero num_modes if nl80211_get_hw_feature_data() fails
j at w1.fi
Thu Jan 5 08:24:35 PST 2017
On Wed, Dec 28, 2016 at 03:47:07PM +0200, Andrei Otcheretianski wrote:
> It was possible that nl80211_get_hw_feature_data() function would return
> NULL when num_modes is not set to zero. This might result in a later crash
> when accessing hw.modes. This may be reproduced with hwsim oom tests, for
> example, dbus_connect_oom.
> Fix that by zeroing num_modes if NULL is returned.
Jouni Malinen PGP id EFC895FA
More information about the Hostap