Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 377193
b: refs/heads/master
c: 3cf138a
h: refs/heads/master
i:
  377191: 2b88f41
v: v3
  • Loading branch information
Sylwester Nawrocki authored and Mauro Carvalho Chehab committed Jun 8, 2013
1 parent 45bc975 commit 0b5e30b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d1c1cc664342cf197afeea4b0dd8145d1edee35c
refs/heads/master: 3cf138a6393d4ae2aeabce4c4b776d7d15cce69b
8 changes: 7 additions & 1 deletion trunk/drivers/media/platform/exynos4-is/fimc-is.c
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,11 @@ int fimc_is_start_firmware(struct fimc_is *is)
struct device *dev = &is->pdev->dev;
int ret;

if (is->fw.f_w == NULL) {
dev_err(dev, "firmware is not loaded\n");
return -EINVAL;
}

memcpy(is->memory.vaddr, is->fw.f_w->data, is->fw.f_w->size);
wmb();

Expand Down Expand Up @@ -941,7 +946,8 @@ static int fimc_is_remove(struct platform_device *pdev)
vb2_dma_contig_cleanup_ctx(is->alloc_ctx);
fimc_is_put_clocks(is);
fimc_is_debugfs_remove(is);
release_firmware(is->fw.f_w);
if (is->fw.f_w)
release_firmware(is->fw.f_w);
fimc_is_free_cpu_memory(is);

return 0;
Expand Down

0 comments on commit 0b5e30b

Please sign in to comment.