From: Sunyoung Kang Date: Mon, 16 Jul 2018 07:22:39 +0000 (+0900) Subject: [COMMON] media: mfc: enable dump when ITMON dest is mfc X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=30810b73f7ee93438c0703e504cc699b238f86aa;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] media: mfc: enable dump when ITMON dest is mfc When the ITMON's dest is MFC, the master info is NULL and the MFC debug info is not shown. So this adds to check dest info even if master info is NULL. Change-Id: Iac6a99059d4a82a3bfb8d97b20ff5d760f3a3598 Signed-off-by: Sunyoung Kang --- diff --git a/drivers/media/platform/exynos/mfc/mfc.c b/drivers/media/platform/exynos/mfc/mfc.c index 7b450ffc9897..7ae8fca3435f 100644 --- a/drivers/media/platform/exynos/mfc/mfc.c +++ b/drivers/media/platform/exynos/mfc/mfc.c @@ -1180,9 +1180,6 @@ static int __mfc_itmon_notifier(struct notifier_block *nb, unsigned long action, 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)) {