]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix crash if bitrate calculation goes wrong
authorJohannes Berg <johannes.berg@intel.com>
Fri, 11 Oct 2013 13:47:06 +0000 (15:47 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 14 Oct 2013 07:47:08 +0000 (09:47 +0200)
commitcb7f4f779d18e8a8f5395708ce771cee365a5acc
tree9f6ca03c0304f1b5fe9f2b1cb4e5cf1b1d9e0a53
parent26b1ab774f25f33259f76cc153e11d9b60a6bbd4
mac80211: fix crash if bitrate calculation goes wrong

If a frame's timestamp is calculated, and the bitrate
calculation goes wrong and returns zero, the system
will attempt to divide by zero and crash. Catch this
case and print the rate information that the driver
reported when this happens.

Cc: stable@vger.kernel.org
Reported-by: Thomas Lindroth <thomas.lindroth@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/util.c