binding: navigation: move get_storage_from_value call within write lock 73/23273/1 8.99.2 icefish/8.99.2 icefish_8.99.2
authorMatt Ranostay <matt.ranostay@konsulko.com>
Fri, 6 Dec 2019 02:21:17 +0000 (18:21 -0800)
committerMatt Ranostay <matt.ranostay@konsulko.com>
Fri, 6 Dec 2019 02:29:47 +0000 (02:29 +0000)
commit0119cb4fd006b594c491f255c62b58d3e3fffab7
tree7394d6de44c2bbe75d51d7bd38de60d68d583527
parent2d9012ea413e3bce98f4f616a875a1a21cccbb81
binding: navigation: move get_storage_from_value call within write lock

json_object returned from get_storage_from_value() needs to be protected
within the write lock. This is to prevent reentrant calls to broadcast() from
accessing it, and running json_object_put()

Bug-AGL: SPEC-2880
Change-Id: I9fdf614728368c75e925e4c5a0f3ca19a7e517e1
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
binding/navigation-api.c