Bug: NULL pointer dereference in master/device.c behoben.
authorFlorian Pose <fp@igh-essen.com>
Mon, 20 Feb 2006 08:30:30 +0000
changeset 70 6693d7e25d5e
parent 69 69dad4ec73c2
child 71 79d7b9cfdeb9
Bug: NULL pointer dereference in master/device.c behoben.
devices/8139too.c
master/device.c
--- a/devices/8139too.c	Tue Feb 14 14:53:41 2006 +0000
+++ b/devices/8139too.c	Mon Feb 20 08:30:30 2006 +0000
@@ -1,6 +1,6 @@
 /******************************************************************************
  *
- *  drv_8139too.c
+ *  8 1 3 9 t o o . c
  *
  *  EtherCAT-Treiber für RTL8139-kompatible Netzwerkkarten.
  *
--- a/master/device.c	Tue Feb 14 14:53:41 2006 +0000
+++ b/master/device.c	Mon Feb 20 08:30:30 2006 +0000
@@ -347,7 +347,7 @@
 
 int EtherCAT_dev_is_ec(ec_device_t *ecd, struct net_device *dev)
 {
-  return ecd->dev == dev;
+  return ecd && ecd->dev == dev;
 }
 
 /*****************************************************************************/