summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
inline | side by side (from parent 1:
3e01cf3)
clear_instances() can get called on an unused driver.
struct dev_context *devc;
GSList *l;
struct dev_context *devc;
GSList *l;
+ if (!(drvc = di->priv))
+ return SR_OK;
+
for (l = drvc->instances; l; l = l->next) {
if (!(sdi = l->data))
continue;
for (l = drvc->instances; l; l = l->next) {
if (!(sdi = l->data))
continue;