Liu Ying
43a8a1e18b
MLK-11918-4 video: mxc ipuv3 fb: Fix dangling pointer dereference in check_var
...
The function fbi_to_pixfmt() could access the pointer fbi->device provided
by it's input parameter fbi, so let's make sure the pointer isn't dangling.
This patch fixes the following issue reported by Coverity:
Uninitialized pointer read (UNINIT)
uninit_use_in_call: Using uninitialized value tmp_fbi.device when calling
fbi_to_pixfmt.
switch (fbi_to_pixfmt(&tmp_fbi, true)) {
case IPU_PIX_FMT_YUV420P2:
case IPU_PIX_FMT_YVU420P:
Signed-off-by: Liu Ying <Ying.Liu@freescale.com >
2019-02-12 10:23:52 +08:00
..
2019-01-31 08:13:45 +01:00
2019-02-12 10:23:04 +08:00
2019-02-06 17:31:37 +01:00
2019-01-23 08:09:51 +01:00
2019-02-12 10:23:20 +08:00
2019-02-12 10:23:45 +08:00
2019-02-12 10:21:30 +08:00
2019-02-12 10:23:42 +08:00
2019-01-26 09:37:02 +01:00
2019-01-23 08:09:48 +01:00
2019-02-12 10:23:48 +08:00
2019-02-12 10:21:30 +08:00
2019-02-12 10:21:25 +08:00
2019-01-31 08:13:44 +01:00
2019-02-12 10:23:22 +08:00
2019-01-13 10:01:07 +01:00
2019-02-12 10:23:39 +08:00
2019-02-12 10:23:00 +08:00
2019-02-06 17:31:36 +01:00
2019-02-12 10:23:29 +08:00
2019-02-06 17:31:34 +01:00
2019-01-31 08:13:46 +01:00
2019-02-06 17:31:37 +01:00
2019-02-12 10:23:49 +08:00
2019-02-12 10:23:22 +08:00
2019-02-12 10:22:50 +08:00
2019-02-12 10:23:40 +08:00
2019-02-12 10:21:57 +08:00
2019-02-12 10:23:50 +08:00
2019-02-12 10:23:34 +08:00
2019-01-31 08:13:47 +01:00
2019-01-23 08:09:49 +01:00
2019-02-12 10:23:45 +08:00
2019-02-12 10:23:36 +08:00
2019-02-06 17:31:36 +01:00
2019-02-12 10:23:30 +08:00
2019-01-31 08:13:47 +01:00
2019-02-12 10:23:41 +08:00
2019-02-12 10:22:48 +08:00
2019-02-12 10:23:07 +08:00
2019-01-31 08:13:43 +01:00
2019-02-12 10:23:04 +08:00
2019-02-12 10:23:19 +08:00
2019-02-12 10:23:42 +08:00
2019-01-31 08:13:43 +01:00
2019-01-26 09:37:03 +01:00
2019-02-12 10:23:33 +08:00
2019-02-12 10:22:59 +08:00
2019-02-12 10:23:49 +08:00
2019-01-31 08:13:41 +01:00
2019-02-12 10:23:52 +08:00
2019-01-31 08:13:48 +01:00
2019-02-12 10:21:51 +08:00
2019-02-12 10:21:51 +08:00