mirror of git://git.sysmocom.de/ofono
simfs: Reset op_source in simfs_read_block
If the block is not in cache or if this is the last block of a last op in the queue, then fs->op_source might be left with the wrong value.
This commit is contained in:
parent
863ce7d93a
commit
882c0c2761
|
@ -269,6 +269,8 @@ static gboolean sim_fs_op_read_block(gpointer user_data)
|
|||
int end_block;
|
||||
unsigned short read_bytes;
|
||||
|
||||
fs->op_source = 0;
|
||||
|
||||
start_block = op->offset / 256;
|
||||
end_block = (op->offset + (op->num_bytes - 1)) / 256;
|
||||
|
||||
|
|
Loading…
Reference in New Issue