mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-08-19 10:25:50 +08:00
Bug: NULL pointer dereference in master/device.c behoben.
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* drv_8139too.c
|
||||
* 8 1 3 9 t o o . c
|
||||
*
|
||||
* EtherCAT-Treiber für RTL8139-kompatible Netzwerkkarten.
|
||||
*
|
||||
|
||||
+1
-1
@@ -347,7 +347,7 @@ void EtherCAT_dev_state(ec_device_t *ecd, ec_device_state_t state)
|
||||
|
||||
int EtherCAT_dev_is_ec(ec_device_t *ecd, struct net_device *dev)
|
||||
{
|
||||
return ecd->dev == dev;
|
||||
return ecd && ecd->dev == dev;
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user