1
0
Fork 0

MLK-13329 IPU: add return value check after calling ipu_init_channel()

Fix coverity CID 17574 uncheck return value.

Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
pull/10/head
Guoniu.Zhou 2016-10-12 11:29:31 +08:00 committed by Jason Liu
parent ed5c3872f8
commit ec4959e099
1 changed files with 4 additions and 1 deletions

View File

@ -470,7 +470,10 @@ static int _setup_disp_channel1(struct fb_info *fbi)
if (mxc_fbi->alpha_chan_en)
params.mem_dp_bg_sync.alpha_chan_en = true;
}
ipu_init_channel(mxc_fbi->ipu, mxc_fbi->ipu_ch, &params);
if (ipu_init_channel(mxc_fbi->ipu, mxc_fbi->ipu_ch, &params) < 0) {
dev_err(fbi->device, "init ipu channel fail\n");
return -EINVAL;
}
return 0;
}