commit | a874aabef9337f26c589858e7ea0ec6a6adbb129 | [log] [tgz] |
---|---|---|
author | Fabio Estevam <fabio.estevam@nxp.com> | Wed Aug 16 20:14:07 2017 -0400 |
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | Sun Aug 20 08:26:53 2017 -0400 |
tree | 9ad7dbb4c3bf914ffe4fc28066c540cab10d7c0e | |
parent | d088c3107e9718ca3271277693f80a42d4effe51 [diff] |
media: coda/imx-vdoa: Check for platform_get_resource() error platform_get_resource() may fail and in this case a NULL dereference will occur. Prevent this from happening by returning an error on platform_get_resource() failure. Fixes: b0444f18e0b18abce ("[media] coda: add i.MX6 VDOA driver") Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>