1
0
mirror of https://github.com/DigitalDevices/dddvb.git synced 2023-10-10 13:37:43 +02:00

check if info exists

This commit is contained in:
Ralph Metzler 2016-08-29 21:13:48 +02:00
parent 1f4ae2bd51
commit f20b16cd12

View File

@ -4953,7 +4953,8 @@ static void ddb_device_attrs_del(struct ddb *dev)
int i;
for (i = 0; i < 4; i++)
if (dev->link[i].info->tempmon_irq)
if (dev->link[i].info &&
dev->link[i].info->tempmon_irq)
device_remove_file(dev->ddb_dev, &ddb_attrs_fanspeed[i]);
for (i = 0; i < dev->link[0].info->temp_num; i++)
device_remove_file(dev->ddb_dev, &ddb_attrs_temp[i]);