]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
media: davinci-vpif: Don't dereference endpoint after putting it, fix refcounting
authorSakari Ailus <sakari.ailus@linux.intel.com>
Thu, 4 Apr 2019 22:41:19 +0000 (18:41 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 25 Jul 2019 12:01:10 +0000 (08:01 -0400)
commit6a76404b13ba7101216967dc447b77cf69e56adf
tree22bff268fb39f9effa9cff2677c4c79ff0bf16c7
parent6ddb094a9f8c451c42bc7c58cfed22275e8a1e38
media: davinci-vpif: Don't dereference endpoint after putting it, fix refcounting

The davinci-vpif driver dereferences its local endpoints after releasing
the reference to them.

The driver also puts its endpoints explicitly while the
of_graph_get_next_endpoint() does that, too, leading to obtaining a
reference once and releasing it twice.

Both are fixed by this patch.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/davinci/vpif_capture.c