diff options
author | Nicholas Mc Guire <hofrat@osadl.org> | 2019-01-20 06:52:23 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-27 16:46:26 +0300 |
commit | 8f51a1bbe9fecdd7f7bdf7e58287bc0beda5d404 (patch) | |
tree | a7c68bf75141d5ad6641f2de78504347af22d4a2 /net/tipc/node.c | |
parent | 8d53d5a2de14502ff1a62764e67568a68a558f1b (diff) | |
download | linux-8f51a1bbe9fecdd7f7bdf7e58287bc0beda5d404.tar.xz |
media: cx23885: check allocation return
[ 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>
Diffstat (limited to 'net/tipc/node.c')
0 files changed, 0 insertions, 0 deletions