summaryrefslogtreecommitdiff
path: root/isp/subdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'isp/subdev.c')
-rw-r--r--isp/subdev.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/isp/subdev.c b/isp/subdev.c
index b4894a2..9b36234 100644
--- a/isp/subdev.c
+++ b/isp/subdev.c
@@ -75,7 +75,11 @@ int v4l2_subdev_open(struct media_entity *entity)
void v4l2_subdev_close(struct media_entity *entity)
{
+ if (entity->fd == -1)
+ return;
+
close(entity->fd);
+ entity->fd = -1;
}
int v4l2_subdev_get_format(struct media_entity *entity,