Bug: NULL pointer dereference in master/device.c behoben.

This commit is contained in:
Florian Pose 2006-02-20 08:30:30 +00:00
parent 11fd2191ee
commit c5e95b0bc5
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
/******************************************************************************
*
* drv_8139too.c
* 8 1 3 9 t o o . c
*
* EtherCAT-Treiber für RTL8139-kompatible Netzwerkkarten.
*

View File

@ -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;
}
/*****************************************************************************/