Bjorn Andersson df6c19d033 storage: Track opened files without backing storage
Upon populating the shadow_buf the no fd is associated with the rmtfd.
Therefor the next open request will conclude that the rmtfd is available
and use the same entry. Fix this by checking for both associated fd and
shadow_buf in the open call.

Fixes: c35633ab23 ("storage: Allow read only backing storage")
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2019-07-28 13:11:53 -07:00
2019-07-25 11:18:58 -07:00
2016-06-02 10:29:40 -07:00
2019-07-25 11:18:58 -07:00
2016-02-07 09:32:14 -08:00
2016-02-07 09:32:14 -08:00
Description
No description provided
BSD-3-Clause 144 KiB
Languages
C 98.4%
Makefile 1.6%