diff options
author | Fabio Estevam <fabio.estevam@nxp.com> | 2017-08-16 20:14:07 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-08-20 08:26:53 -0400 |
commit | a874aabef9337f26c589858e7ea0ec6a6adbb129 (patch) | |
tree | 9ad7dbb4c3bf914ffe4fc28066c540cab10d7c0e /drivers/media/usb | |
parent | d088c3107e9718ca3271277693f80a42d4effe51 (diff) | |
download | linux-a874aabef9337f26c589858e7ea0ec6a6adbb129.tar.bz2 |
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>
Diffstat (limited to 'drivers/media/usb')
0 files changed, 0 insertions, 0 deletions