From 8d7eeea15b11d819eb30c6f9286b3a06a8c2434e Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Mon, 27 Aug 2012 09:24:28 -0700 Subject: [PATCH] 3.4-stable patches added patches: usb-emi62-remove-__devinit-from-the-struct-usb_device_id-table.patch usb-vt6656-remove-__devinit-from-the-struct-usb_device_id-table.patch --- queue-3.4/series | 2 + ...-from-the-struct-usb_device_id-table.patch | 40 ++++++++++++++++++ ...-from-the-struct-usb_device_id-table.patch | 42 +++++++++++++++++++ 3 files changed, 84 insertions(+) create mode 100644 queue-3.4/series create mode 100644 queue-3.4/usb-emi62-remove-__devinit-from-the-struct-usb_device_id-table.patch create mode 100644 queue-3.4/usb-vt6656-remove-__devinit-from-the-struct-usb_device_id-table.patch diff --git a/queue-3.4/series b/queue-3.4/series new file mode 100644 index 00000000000..a41f87f0946 --- /dev/null +++ b/queue-3.4/series @@ -0,0 +1,2 @@ +usb-vt6656-remove-__devinit-from-the-struct-usb_device_id-table.patch +usb-emi62-remove-__devinit-from-the-struct-usb_device_id-table.patch diff --git a/queue-3.4/usb-emi62-remove-__devinit-from-the-struct-usb_device_id-table.patch b/queue-3.4/usb-emi62-remove-__devinit-from-the-struct-usb_device_id-table.patch new file mode 100644 index 00000000000..af30d00e490 --- /dev/null +++ b/queue-3.4/usb-emi62-remove-__devinit-from-the-struct-usb_device_id-table.patch @@ -0,0 +1,40 @@ +From 83957df21dd94655d2b026e0944a69ff37b83988 Mon Sep 17 00:00:00 2001 +From: Greg Kroah-Hartman +Date: Fri, 17 Aug 2012 17:48:41 -0700 +Subject: USB: emi62: remove __devinit* from the struct usb_device_id table +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +From: Greg Kroah-Hartman + +commit 83957df21dd94655d2b026e0944a69ff37b83988 upstream. + +This structure needs to always stick around, even if CONFIG_HOTPLUG +is disabled, otherwise we can oops when trying to probe a device that +was added after the structure is thrown away. + +Thanks to Fengguang Wu and Bjørn Mork for tracking this issue down. + +Reported-by: Fengguang Wu +Reported-by: Bjørn Mork +CC: Paul Gortmaker +CC: Andrew Morton +CC: Felipe Balbi +Signed-off-by: Greg Kroah-Hartman + +--- + drivers/usb/misc/emi62.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/drivers/usb/misc/emi62.c ++++ b/drivers/usb/misc/emi62.c +@@ -256,7 +256,7 @@ wraperr: + return err; + } + +-static const struct usb_device_id id_table[] __devinitconst = { ++static const struct usb_device_id id_table[] = { + { USB_DEVICE(EMI62_VENDOR_ID, EMI62_PRODUCT_ID) }, + { } /* Terminating entry */ + }; diff --git a/queue-3.4/usb-vt6656-remove-__devinit-from-the-struct-usb_device_id-table.patch b/queue-3.4/usb-vt6656-remove-__devinit-from-the-struct-usb_device_id-table.patch new file mode 100644 index 00000000000..a9001bf4b6b --- /dev/null +++ b/queue-3.4/usb-vt6656-remove-__devinit-from-the-struct-usb_device_id-table.patch @@ -0,0 +1,42 @@ +From 4d088876f24887cd15a29db923f5f37db6a99f21 Mon Sep 17 00:00:00 2001 +From: Greg Kroah-Hartman +Date: Fri, 17 Aug 2012 17:48:33 -0700 +Subject: USB: vt6656: remove __devinit* from the struct usb_device_id table +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +From: Greg Kroah-Hartman + +commit 4d088876f24887cd15a29db923f5f37db6a99f21 upstream. + +This structure needs to always stick around, even if CONFIG_HOTPLUG +is disabled, otherwise we can oops when trying to probe a device that +was added after the structure is thrown away. + +Thanks to Fengguang Wu and Bjørn Mork for tracking this issue down. + +Reported-by: Fengguang Wu +Reported-by: Bjørn Mork +CC: Forest Bond +CC: Marcos Paulo de Souza +CC: "David S. Miller" +CC: Jesper Juhl +CC: Jiri Pirko +Signed-off-by: Greg Kroah-Hartman + +--- + drivers/staging/vt6656/main_usb.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/drivers/staging/vt6656/main_usb.c ++++ b/drivers/staging/vt6656/main_usb.c +@@ -222,7 +222,7 @@ DEVICE_PARAM(b80211hEnable, "802.11h mod + // Static vars definitions + // + +-static struct usb_device_id vt6656_table[] __devinitdata = { ++static struct usb_device_id vt6656_table[] = { + {USB_DEVICE(VNT_USB_VENDOR_ID, VNT_USB_PRODUCT_ID)}, + {} + }; -- 2.47.2