All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/5] simfs: Reset op_source in simfs_read_block.
@ 2011-01-29  0:29 Andrzej Zaborowski
  2011-01-29  0:29 ` [PATCH 2/5] simfs: Return from sim_fs_op_check_cached on error Andrzej Zaborowski
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Andrzej Zaborowski @ 2011-01-29  0:29 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 613 bytes --]

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.
---
 src/simfs.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/simfs.c b/src/simfs.c
index b77e1dc..35045a1 100644
--- a/src/simfs.c
+++ b/src/simfs.c
@@ -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;
 
-- 
1.7.1.86.g0e460.dirty


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-02-03 19:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-29  0:29 [PATCH 1/5] simfs: Reset op_source in simfs_read_block Andrzej Zaborowski
2011-01-29  0:29 ` [PATCH 2/5] simfs: Return from sim_fs_op_check_cached on error Andrzej Zaborowski
2011-01-29 17:22   ` Denis Kenzior
2011-01-29  0:29 ` [PATCH 3/5] simfs: Use cache for sim_fs_read_info requests too Andrzej Zaborowski
2011-02-03 17:38   ` Denis Kenzior
2011-01-29  0:29 ` [PATCH 4/5] ofono_sim_context api header changes Andrzej Zaborowski
2011-02-03 19:17   ` Denis Kenzior
2011-01-29  0:29 ` [PATCH 5/5] Implement ofono_sim_context api Andrzej Zaborowski
2011-01-29 17:22 ` [PATCH 1/5] simfs: Reset op_source in simfs_read_block Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.