]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.4-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Feb 2017 12:33:09 +0000 (13:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Feb 2017 12:33:09 +0000 (13:33 +0100)
added patches:
ntb-ntb_transport-fix-debugfs_remove_recursive.patch
ntb_transport-pick-an-unused-queue.patch

queue-4.4/ntb-ntb_transport-fix-debugfs_remove_recursive.patch [new file with mode: 0644]
queue-4.4/ntb_transport-pick-an-unused-queue.patch [new file with mode: 0644]
queue-4.4/series

diff --git a/queue-4.4/ntb-ntb_transport-fix-debugfs_remove_recursive.patch b/queue-4.4/ntb-ntb_transport-fix-debugfs_remove_recursive.patch
new file mode 100644 (file)
index 0000000..8fa7dd1
--- /dev/null
@@ -0,0 +1,38 @@
+From dd62245e73de9138333cb0e7a42c8bc1215c3ce6 Mon Sep 17 00:00:00 2001
+From: Allen Hubbe <Allen.Hubbe@dell.com>
+Date: Tue, 27 Dec 2016 17:57:04 -0500
+Subject: NTB: ntb_transport: fix debugfs_remove_recursive
+
+From: Allen Hubbe <Allen.Hubbe@dell.com>
+
+commit dd62245e73de9138333cb0e7a42c8bc1215c3ce6 upstream.
+
+The call to debugfs_remove_recursive(qp->debugfs_dir) of the sub-level
+directory must not be later than
+debugfs_remove_recursive(nt_debugfs_dir) of the top-level directory.
+Otherwise, the sub-level directory will not exist, and it would be
+invalid (panic) to attempt to remove it.  This removes the top-level
+directory last, after sub-level directories have been cleaned up.
+
+Signed-off-by: Allen Hubbe <Allen.Hubbe@dell.com>
+Fixes: e26a5843f ("NTB: Split ntb_hw_intel and ntb_transport drivers")
+Signed-off-by: Jon Mason <jdmason@kudzu.us>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/ntb/ntb_transport.c |    3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+--- a/drivers/ntb/ntb_transport.c
++++ b/drivers/ntb/ntb_transport.c
+@@ -2082,9 +2082,8 @@ module_init(ntb_transport_init);
+ static void __exit ntb_transport_exit(void)
+ {
+-      debugfs_remove_recursive(nt_debugfs_dir);
+-
+       ntb_unregister_client(&ntb_transport_client);
+       bus_unregister(&ntb_transport_bus);
++      debugfs_remove_recursive(nt_debugfs_dir);
+ }
+ module_exit(ntb_transport_exit);
diff --git a/queue-4.4/ntb_transport-pick-an-unused-queue.patch b/queue-4.4/ntb_transport-pick-an-unused-queue.patch
new file mode 100644 (file)
index 0000000..5187fa8
--- /dev/null
@@ -0,0 +1,34 @@
+From 8fcd0950c021d7be8493280541332b924b9de962 Mon Sep 17 00:00:00 2001
+From: Thomas VanSelus <tvanselus@xes-inc.com>
+Date: Mon, 13 Feb 2017 16:46:26 -0600
+Subject: ntb_transport: Pick an unused queue
+
+From: Thomas VanSelus <tvanselus@xes-inc.com>
+
+commit 8fcd0950c021d7be8493280541332b924b9de962 upstream.
+
+Fix typo causing ntb_transport_create_queue to select the first
+queue every time, instead of using the next free queue.
+
+Signed-off-by: Thomas VanSelus <tvanselus@xes-inc.com>
+Signed-off-by: Aaron Sierra <asierra@xes-inc.com>
+Acked-by: Allen Hubbe <Allen.Hubbe@dell.com>
+Fixes: fce8a7bb5 ("PCI-Express Non-Transparent Bridge Support")
+Signed-off-by: Jon Mason <jdmason@kudzu.us>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/ntb/ntb_transport.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/drivers/ntb/ntb_transport.c
++++ b/drivers/ntb/ntb_transport.c
+@@ -1623,7 +1623,7 @@ ntb_transport_create_queue(void *data, s
+       node = dev_to_node(&ndev->dev);
+-      free_queue = ffs(nt->qp_bitmap);
++      free_queue = ffs(nt->qp_bitmap_free);
+       if (!free_queue)
+               goto err;
index 7458ba0e606045ef6753dfb47924d5908e5ba6f3..1f2a77c427e3ac0e032ace550c1d5d4e8a3a6479 100644 (file)
@@ -10,3 +10,5 @@ drm-dp-mst-fix-kernel-oops-when-turning-off-secondary-monitor.patch
 futex-move-futex_init-to-core_initcall.patch
 arm-8658-1-uaccess-fix-zeroing-of-64-bit-get_user.patch
 printk-use-rcuidle-console-tracepoint.patch
+ntb-ntb_transport-fix-debugfs_remove_recursive.patch
+ntb_transport-pick-an-unused-queue.patch