Commit 56009774 authored by John W. Linville's avatar John W. Linville Committed by Greg Kroah-Hartman
Browse files

mac80211: avoid NULL ptr deref when finding max_rates in PID and minstrel



commit 621ad7c9 upstream.

"There is another problem with this piece of code. The sband will be NULL
after second iteration on single band device and cause null pointer
dereference. Everything is working with dual band card. Sorry, but i
don't know how to explain this clearly in English. I have looked on the
second patch for pid algorithm and found similar bug."

Reported-by: default avatarKarol Szuster <qflon@o2.pl>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 94a9ef2f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment