]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.9-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Jul 2017 13:37:54 +0000 (15:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Jul 2017 13:37:54 +0000 (15:37 +0200)
added patches:
mac80211_hwsim-replace-bogus-hrtimer-clockid.patch

queue-4.9/mac80211_hwsim-replace-bogus-hrtimer-clockid.patch [new file with mode: 0644]
queue-4.9/series

diff --git a/queue-4.9/mac80211_hwsim-replace-bogus-hrtimer-clockid.patch b/queue-4.9/mac80211_hwsim-replace-bogus-hrtimer-clockid.patch
new file mode 100644 (file)
index 0000000..4dced98
--- /dev/null
@@ -0,0 +1,33 @@
+From 8fbcfeb8a9cc803464d6c166e7991913711c612c Mon Sep 17 00:00:00 2001
+From: Thomas Gleixner <tglx@linutronix.de>
+Date: Sat, 25 Feb 2017 10:27:37 +0000
+Subject: mac80211_hwsim: Replace bogus hrtimer clockid
+
+From: Thomas Gleixner <tglx@linutronix.de>
+
+commit 8fbcfeb8a9cc803464d6c166e7991913711c612c upstream.
+
+mac80211_hwsim initializes a hrtimer with clockid
+CLOCK_MONOTONIC_RAW. That's not supported.
+
+Use CLOCK_MONOTONIC instead.
+
+Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
+Signed-off-by: Johannes Berg <johannes.berg@intel.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/net/wireless/mac80211_hwsim.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/drivers/net/wireless/mac80211_hwsim.c
++++ b/drivers/net/wireless/mac80211_hwsim.c
+@@ -2662,7 +2662,7 @@ static int mac80211_hwsim_new_radio(stru
+       tasklet_hrtimer_init(&data->beacon_timer,
+                            mac80211_hwsim_beacon,
+-                           CLOCK_MONOTONIC_RAW, HRTIMER_MODE_ABS);
++                           CLOCK_MONOTONIC, HRTIMER_MODE_ABS);
+       spin_lock_bh(&hwsim_radio_lock);
+       list_add_tail(&data->list, &hwsim_radios);
index 84c72b612c17f56b96a88eb1e5a767e658943adb..c2f939e12a46db45f5b08306b9367671fec970df 100644 (file)
@@ -11,3 +11,4 @@ add-usb-quirk-for-hvr-950q-to-avoid-intermittent-device-resets.patch
 usb-usbip-set-buffer-pointers-to-null-after-free.patch
 usb-fix-typo-in-the-definition-of-endpointrequest.patch
 usb-core-fix-device-node-leak.patch
+mac80211_hwsim-replace-bogus-hrtimer-clockid.patch