]> git.baikalelectronics.ru Git - 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)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 19 Mar 2019 20:45:08 +0000 (16:45 -0400)
commit35556258db48410fda2eb353e2d42d69794f2437
treefeba0869b814c70e4c415205b73d9da56a0182b2
parent4142f3f9d0f193e06300d85c2fbc1006f47f5cc3
media: cx23885: check allocation return

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: b9e803494cb8 ("[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>
drivers/media/pci/cx23885/cx23885-dvb.c