Blame patches.kabi/struct-xhci_hcd-restore-member-now-dynamically-alloc.patch
|
Oliver Neukum |
ac47ac |
From 7c3193094b7d2c7acaedfe9f4c55d8399e763125 Mon Sep 17 00:00:00 2001
|
|
Oliver Neukum |
ac47ac |
From: Oliver Neukum <oneukum@suse.com>
|
|
Oliver Neukum |
ac47ac |
Date: Wed, 28 Sep 2022 12:31:29 +0200
|
|
Oliver Neukum |
ac47ac |
Subject: [PATCH] struct xhci_hcd: restore member now dynamically allocated
|
|
Oliver Neukum |
ac47ac |
Patch-mainline: Never (kABI restoration)
|
|
Oliver Neukum |
ac47ac |
References: git-fixes
|
|
Oliver Neukum |
ac47ac |
|
|
Oliver Neukum |
ac47ac |
Upstream chose to dynamically allocated rather than fix
|
|
Oliver Neukum |
ac47ac |
locking to fix a race. Protect kABI by restoring a member
|
|
Oliver Neukum |
ac47ac |
that is left always NULL, as it sometimes was even before.
|
|
Oliver Neukum |
ac47ac |
|
|
Oliver Neukum |
ac47ac |
Signed-off-by: Oliver Neukum <oneukum@suse.com>
|
|
Oliver Neukum |
ac47ac |
---
|
|
Oliver Neukum |
ac47ac |
drivers/usb/host/xhci.h | 2 ++
|
|
Oliver Neukum |
ac47ac |
1 file changed, 2 insertions(+)
|
|
Oliver Neukum |
ac47ac |
|
|
Oliver Neukum |
ac47ac |
diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h
|
|
Oliver Neukum |
ac47ac |
index 49b62434a..7f1c81dfb 100644
|
|
Oliver Neukum |
ac47ac |
--- a/drivers/usb/host/xhci.h
|
|
Oliver Neukum |
ac47ac |
+++ b/drivers/usb/host/xhci.h
|
|
Oliver Neukum |
ac47ac |
@@ -1815,6 +1815,8 @@ struct xhci_hcd {
|
|
Oliver Neukum |
ac47ac |
/* slot enabling and address device helpers */
|
|
Oliver Neukum |
ac47ac |
/* these are not thread safe so use mutex */
|
|
Oliver Neukum |
ac47ac |
struct mutex mutex;
|
|
Oliver Neukum |
ac47ac |
+ /* now dynamically allocated - dummy member always NULL */
|
|
Oliver Neukum |
ac47ac |
+ struct xhci_command *lpm_command;
|
|
Oliver Neukum |
ac47ac |
/* Internal mirror of the HW's dcbaa */
|
|
Oliver Neukum |
ac47ac |
struct xhci_virt_device *devs[MAX_HC_SLOTS];
|
|
Oliver Neukum |
ac47ac |
/* For keeping track of bandwidth domains per roothub. */
|
|
Oliver Neukum |
ac47ac |
--
|
|
Oliver Neukum |
ac47ac |
2.35.3
|
|
Oliver Neukum |
ac47ac |
|