simfs: Call callback even if impl isn't provided

This commit is contained in:
Guillaume Zajac 2011-11-21 11:54:03 +01:00 committed by Denis Kenzior
parent 97359e7f7b
commit 7852f25079
1 changed files with 3 additions and 1 deletions

View File

@ -901,8 +901,10 @@ int sim_fs_read(struct ofono_sim_context *context, int id,
if (fs->driver == NULL)
return -EINVAL;
if (fs->driver->read_file_info == NULL)
if (fs->driver->read_file_info == NULL) {
cb(0, 0, 0, NULL, 0, data);
return -ENOSYS;
}
if (fs->op_q == NULL)
fs->op_q = g_queue_new();