From 78bcbd6cdbec2498125debefc41e23c1564b0fa5 Mon Sep 17 00:00:00 2001 From: Bhaskar Date: Wed, 22 May 2013 22:53:36 +0530 Subject: osmoload: Fix fall-out from msgb_get() / msgb_pull() transition Bugfix in Osmoload.c: Assigning correct value to data pointer in LOADER_MEM_READ. Wrong value was introduced in last update when msgb_get() was replaced by msgb_pull() which returns end of data instead of start of data. --- src/host/osmocon/osmoload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/host/osmocon/osmoload.c b/src/host/osmocon/osmoload.c index 9b649357..e83f98ad 100644 --- a/src/host/osmocon/osmoload.c +++ b/src/host/osmocon/osmoload.c @@ -307,7 +307,7 @@ loader_handle_reply(struct msgb *msg) { length = msgb_pull_u8(msg); crc = msgb_pull_u16(msg); address = msgb_pull_u32(msg); - data = msgb_pull(msg, length); + data = msgb_pull(msg, length) - length; break; case LOADER_MEM_WRITE: length = msgb_pull_u8(msg); -- cgit v1.2.3