From: Kamil Debski Date: Fri, 11 Jan 2013 14:29:32 +0000 (-0300) Subject: [media] s5p-mfc: Fix a watchdog bug X-Git-Tag: v3.9-rc5~2^2~161 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=33133ea7aca7eedf8b1b4cee514c76dce7654a8c;p=platform%2Fupstream%2Fkernel-adaptation-pc.git [media] s5p-mfc: Fix a watchdog bug Fixed wrong condition in firmware reload function used by the watchdog. Signed-off-by: Kamil Debski Signed-off-by: Kyungmin Park Signed-off-by: Sylwester Nawrocki Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c b/drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c index 1682271..2e5f30b 100644 --- a/drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c +++ b/drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c @@ -130,7 +130,7 @@ int s5p_mfc_reload_firmware(struct s5p_mfc_dev *dev) release_firmware(fw_blob); return -ENOMEM; } - if (dev->fw_virt_addr) { + if (!dev->fw_virt_addr) { mfc_err("MFC firmware is not allocated\n"); release_firmware(fw_blob); return -EINVAL;