open handle: open function flow was matched. 23/154423/3
authorSegwon <segwon.han@samsung.com>
Tue, 10 Oct 2017 07:26:13 +0000 (16:26 +0900)
committerSegwon <segwon.han@samsung.com>
Tue, 10 Oct 2017 12:14:17 +0000 (21:14 +0900)
commit058bbd127a9d4509fccbbf7aff0d739b6e2edeac
tree30200b7fea19c9ba472a9819b6cae920ce2d5101
parenta13900befb56e3a5c4f93b27baec64a55bf772b9
open handle: open function flow was matched.

 - added the NULL check when trying to allocate memory for i2c handle.
 - modified to return an OUT_OF_MEMORY when failed allocation from peripheral_bus_data_new().
 - open i2c, uart handle flow was matched with another open flow.
 - add log before return error.

Change-Id: Ibcee972e2bba39cc42b8bc53bd91efcb0526b0bf
Signed-off-by: Segwon <segwon.han@samsung.com>
src/daemon/peripheral_bus_gpio.c
src/daemon/peripheral_bus_i2c.c
src/daemon/peripheral_bus_spi.c
src/daemon/peripheral_bus_uart.c