devinfo: avoid crash if query_model not supported

This commit is contained in:
Mikel Astiz 2011-10-21 18:51:35 +02:00 committed by Denis Kenzior
parent 7100435142
commit b6f99b6200
1 changed files with 1 additions and 0 deletions

View File

@ -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);