diff options
Diffstat (limited to 'lib/sysfs_driver.c')
-rw-r--r-- | lib/sysfs_driver.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/sysfs_driver.c b/lib/sysfs_driver.c index 6857b6f..b243fc7 100644 --- a/lib/sysfs_driver.c +++ b/lib/sysfs_driver.c @@ -153,6 +153,12 @@ struct dlist *sysfs_get_driver_attributes(struct sysfs_driver *driver) dprintf("Error reading driver attributes\n"); return NULL; } + } else { + if ((sysfs_refresh_attributes + (driver->directory->attributes)) != 0) { + dprintf("Error refreshing driver attributes\n"); + return NULL; + } } return(driver->directory->attributes); } |