Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 2e81ae39 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

media: r820t: don't crash if attach fails



As pointed by smatch:
	drivers/media/tuners/r820t.c:2374 r820t_attach() error: potential null dereference 'priv'.  (kzalloc returns null)

The current function with prints error assumes that the attach
succeeds. So, don't use it in case of failures.

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 17dec0a9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment