Janusz.Dziedzic@tieto.com 519ee6918b mac80211: fix divide by zero when NOA update
In case of one shot NOA the interval can be 0, catch that
instead of potentially (depending on the driver) crashing
like this:

divide error: 0000 [#1] SMP
[...]
Call Trace:
<IRQ>
[<ffffffffc08e891c>] ieee80211_extend_absent_time+0x6c/0xb0 [mac80211]
[<ffffffffc08e8a17>] ieee80211_update_p2p_noa+0xb7/0xe0 [mac80211]
[<ffffffffc069cc30>] ath9k_p2p_ps_timer+0x170/0x190 [ath9k]
[<ffffffffc070adf8>] ath_gen_timer_isr+0xc8/0xf0 [ath9k_hw]
[<ffffffffc0691156>] ath9k_tasklet+0x296/0x2f0 [ath9k]
[<ffffffff8107ad65>] tasklet_action+0xe5/0xf0
[...]

Cc: stable@vger.kernel.org [3.16+, due to d463af4a1c34 using it]
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2015-11-03 10:40:57 +01:00
..
2015-01-27 11:07:35 +01:00
2015-01-27 11:09:13 +01:00
2015-10-14 18:36:43 +02:00
2014-11-04 13:18:21 +01:00
2014-04-09 14:49:43 +02:00
2015-03-30 10:48:26 +02:00
2015-10-14 18:04:08 +02:00
2015-08-14 17:49:53 +02:00
2015-07-17 15:37:54 +02:00
2015-07-17 15:38:01 +02:00
2015-05-11 19:16:04 +02:00
2015-10-14 18:36:43 +02:00
2015-10-14 18:40:26 +02:00
2014-04-09 14:49:43 +02:00
2015-10-14 18:04:08 +02:00
2013-12-18 10:33:06 +01:00
2015-10-14 18:04:08 +02:00
2015-05-11 14:51:29 +02:00
2012-03-13 14:54:16 -04:00
2015-10-14 18:40:26 +02:00