media: cec-notifier: rename variables, check kstrdup and n->conn_name
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 20 Jun 2019 08:39:00 +0000 (04:39 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 27 Jun 2019 11:17:24 +0000 (07:17 -0400)
commit3d51dc03a4eeb78eac676a559ee984f4f1bb455c
treeac901bd051c784e132dc94085bb8878e3083ebef
parent86d617d6c79d79288ca608b6fb0a2467b0e8ddbb
media: cec-notifier: rename variables, check kstrdup and n->conn_name

dev -> hdmi_dev
conn -> conn_name

Check if n->conn_name is not NULL before calling strcmp.
Check the result of kstrdup, and clean up on error.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/cec/cec-notifier.c