From: Jeonghee Kim Date: Mon, 28 May 2018 12:22:19 +0000 (+0900) Subject: [COMMON] media: mfc: skip itmon_notifier if master is null. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4ef89a92dc0f064447325108924e27e5e082f6e5;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [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 --- 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)) {