Skip to contentSkip to conversation

Patch "drivers/net: fix eisa_driver probe section mismatch" has been added to the 4.4-stable tree

PATCH [email protected] 1 participant 1 message Feb 23, 2018

Subsystems (5)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

drivers/net: fix eisa_driver probe section mismatch

to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
drivers-net-fix-eisa_driver-probe-section-mismatch.patch
and it can be found in the queue-4.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From cb4396edd84ed73081635fb933d19c1410fafaf4 Mon Sep 17 00:00:00 2001

From: Fabian Frederick <[email protected]>
Date: Sat, 12 Dec 2015 18:24:38 +0100
Subject: drivers/net: fix eisa_driver probe section mismatch

From: Fabian Frederick <[email protected]>

commit cb4396edd84ed73081635fb933d19c1410fafaf4 upstream.

Some eisa_driver structures used __init probe functions which generates a warning and could crash if function is called after being deleted.

---
 drivers/net/ethernet/3com/3c509.c      |    2 +-
 drivers/net/ethernet/3com/3c59x.c      |    2 +-
 drivers/net/ethernet/dec/tulip/de4x5.c |    2 +-
 drivers/net/ethernet/hp/hp100.c        |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
drivers/net/ethernet/3com/3c509.c +1 -1
@@ -562,7 +562,7 @@ static void el3_common_remove (struct ne
 }
 
 #ifdef CONFIG_EISA
-static int __init el3_eisa_probe (struct device *device)
+static int el3_eisa_probe(struct device *device)
 {
 	short i;
 	int ioaddr, irq, if_port;
drivers/net/ethernet/3com/3c59x.c +1 -1
@@ -907,7 +907,7 @@ static struct eisa_device_id vortex_eisa
 };
 MODULE_DEVICE_TABLE(eisa, vortex_eisa_ids);
 
-static int __init vortex_eisa_probe(struct device *device)
+static int vortex_eisa_probe(struct device *device)
 {
 	void __iomem *ioaddr;
 	struct eisa_device *edev;
drivers/net/ethernet/dec/tulip/de4x5.c +1 -1
@@ -1990,7 +1990,7 @@ SetMulticastFilter(struct net_device *de
 
 static u_char de4x5_irq[] = EISA_ALLOWED_IRQ_LIST;
 
-static int __init de4x5_eisa_probe (struct device *gendev)
+static int de4x5_eisa_probe(struct device *gendev)
 {
 	struct eisa_device *edev;
 	u_long iobase;
drivers/net/ethernet/hp/hp100.c +1 -1
@@ -2843,7 +2843,7 @@ static void cleanup_dev(struct net_devic
 }
 
 #ifdef CONFIG_EISA
-static int __init hp100_eisa_probe (struct device *gendev)
+static int hp100_eisa_probe(struct device *gendev)
 {
 	struct net_device *dev = alloc_etherdev(sizeof(struct hp100_private));
 	struct eisa_device *edev = to_eisa_device(gendev);

Patches currently in stable-queue which might be from [email protected] are

queue-4.4/drivers-net-fix-eisa_driver-probe-section-mismatch.patch