diff options
author | 2018-03-26 09:18:36 -0400 | |
---|---|---|
committer | 2018-04-04 05:36:20 -0400 | |
commit | 2e81ae396788c7f1af327510899f06f773fe3501 (patch) | |
tree | 45bda80a6731db5c387083b2443ec8c8b9c2ffbd /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | Merge branch 'userns-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace (diff) | |
download | wireguard-linux-2e81ae396788c7f1af327510899f06f773fe3501.tar.xz wireguard-linux-2e81ae396788c7f1af327510899f06f773fe3501.zip |
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: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions