]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
media: cx23885: check allocation return
authorNicholas Mc Guire <hofrat@osadl.org>
Sun, 20 Jan 2019 03:52:23 +0000 (22:52 -0500)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 05:29:37 +0000 (00:29 -0500)
commit52e4f163f4c5ace76661efa01827f7abb3d29943
tree9d7aa6152281893da97d1c7347bfaee848991f26
parentc1f1aee3f1c4754ce340f175c7107a5a38cf06f4
media: cx23885: check allocation return

BugLink: https://bugs.launchpad.net/bugs/1863019
[ Upstream commit a3d7f22ef34ec4206b50ee121384d5c8bebd5591 ]

Checking of kmalloc() seems to have been committed - as
cx23885_dvb_register() is checking for != 0 return, returning
-ENOMEM should be fine here.  While at it address the coccicheck
suggestion to move to kmemdup rather than using kmalloc+memcpy.

Fixes: 46b21bbaa8a8 ("[media] Add support for DViCO FusionHDTV DVB-T Dual Express2")
Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/media/pci/cx23885/cx23885-dvb.c