From 0f362251da91d756743f58cc78bc7c8d43b5832f Mon Sep 17 00:00:00 2001 From: Jeonghee Kim Date: Mon, 28 May 2018 21:22:19 +0900 Subject: [PATCH] [COMMON] media: mfc: skip itmon_notifier if master is null. The master information can has null value, if a complicated itmon error occurs due to bus problem. Skip itmon_notifier at this time. Change-Id: I111aa765025da42fd1a8e6d5fd047bec677f9d99 Signed-off-by: Jeonghee Kim --- drivers/media/platform/exynos/mfc/s5p_mfc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/media/platform/exynos/mfc/s5p_mfc.c b/drivers/media/platform/exynos/mfc/s5p_mfc.c index a5956c130c49..3a7690822a67 100644 --- a/drivers/media/platform/exynos/mfc/s5p_mfc.c +++ b/drivers/media/platform/exynos/mfc/s5p_mfc.c @@ -1155,6 +1155,9 @@ static int mfc_itmon_notifier(struct notifier_block *nb, unsigned long action, v if (IS_ERR_OR_NULL(itmon_info)) return NOTIFY_DONE; + if (!itmon_info->master) + return NOTIFY_DONE; + /* print dump if it is an MFC ITMON error */ if ((strncmp("MFC", itmon_info->port, sizeof("MFC") - 1) == 0) && (strncmp("MFC", itmon_info->master, sizeof("MFC") - 1) == 0)) { -- 2.20.1