mirror of git://git.sysmocom.de/ofono
devinfo: avoid crash if query_model not supported
This commit is contained in:
parent
7100435142
commit
b6f99b6200
|
@ -1398,6 +1398,7 @@ static void query_model(struct ofono_devinfo *info)
|
|||
if (info->driver->query_model == NULL) {
|
||||
/* If model is not supported, don't bother querying revision */
|
||||
query_serial(info);
|
||||
return;
|
||||
}
|
||||
|
||||
info->driver->query_model(info, query_model_cb, info);
|
||||
|
|
Loading…
Reference in New Issue