From: zwl Date: Thu, 31 Jul 2014 12:32:53 +0000 (+0800) Subject: rk fb: fix error judge for screen1 X-Git-Tag: firefly_0821_release~4916^2~96^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=411e9d7737a79607b4e0df9faf413b420d38951a;p=firefly-linux-kernel-4.4.55.git rk fb: fix error judge for screen1 --- diff --git a/drivers/video/rockchip/rk_fb.c b/drivers/video/rockchip/rk_fb.c index 4d4a534e7587..ebc9c0bd419b 100755 --- a/drivers/video/rockchip/rk_fb.c +++ b/drivers/video/rockchip/rk_fb.c @@ -3589,7 +3589,7 @@ static int init_lcdc_device_driver(struct rk_fb *rk_fb, devm_kzalloc(dev_drv->dev, sizeof(struct rk_screen), GFP_KERNEL); - if (screen1) { + if (!screen1) { dev_err(dev_drv->dev, "malloc screen1 for lcdc%d fail!", dev_drv->id); return -ENOMEM;