mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
Revert "media: stm32: dcmipp: correct error handling in dcmipp_create_subdevs"
This reverts commit 77d32b7e2a
.
This patch is obviously wrong (causes array accesses at index -1),
and I caught that just too late.
This commit is contained in:
parent
7b9b9306cb
commit
57dd8f2f77
@ -202,7 +202,7 @@ static int dcmipp_create_subdevs(struct dcmipp_device *dcmipp)
|
||||
return 0;
|
||||
|
||||
err_init_entity:
|
||||
while (i-- > 0)
|
||||
while (i > 0)
|
||||
dcmipp->pipe_cfg->ents[i - 1].release(dcmipp->entity[i - 1]);
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user