msm: camera: crm: Clean up the handle struct on unlink

When unlink is called, struct handle needs to be cleaned up
completely. Only state is changed, but it still currently
holds the ops and priv pointers. The priv pointer can point to
link struct which gets freed in unlink. Hence need to clean
the priv pointer as well.

Change-Id: Icfe50aeec5edddea0605da037ff8099085b7ad0b
Signed-off-by: Harsh Shah <harshs@codeaurora.org>
3 files changed