msm camera2: Free actuator i2c register table memory

Free i2c_reg_tbl in msm_actuator_close() to avoid
leaking the associated memory.

Change-Id: I6f2c46dff2e4730af6e6968b69561b6f3a415a79
Signed-off-by: Evgeniy Borisov <eborisov@codeaurora.org>
msm: vidc: Add error handling for session init failure

When driver tries to open more instances than FW
supports, FW returns session_init failure. This
failure needs to be handled properly by the driver.

CRs-Fixed: 487665
Change-Id: If15d00d046a0b8b8a41c1d2941e53a742ab7ef0f
Signed-off-by: Praneeth Paladugu <ppaladug@codeaurora.org>
of: slimbus: Avoid memory leak of boardinfo array

boardinfo structure array populates slaves on the slimbus.
Framework populates devices specified by the boardinfo array and
the array is not referenced later. Also, while reallocating the
array to populate slaves in the loop, make sure that the existing
array is not leaked if reallocation fails during new slave addition.

Change-Id: Ib7e289ee56c57cad2962529270d55bf4107961df
Signed-off-by: Sagar Dharia <sdharia@codeaurora.org>
msm: camera_v2: Free actuator i2c tbl memory

Function msm_actuator_init() is called multiple
times and we need to free i2c_reg_tbl first to
avoid leaking the associated memory.

Change-Id: I3360be781c31df713be270fb172e1ef13537e613
Signed-off-by: Evgeniy Borisov <eborisov@codeaurora.org>
Merge "msm camera2: Free actuator i2c register table memory"
Merge "msm: vidc: Add error handling for session init failure"
Merge "of: slimbus: Avoid memory leak of boardinfo array"
Merge "msm: camera_v2: Free actuator i2c tbl memory"