diff options
author | Aleksei Gimbitskii <aleksei.gimbitskii@intel.com> | 2019-04-23 15:04:09 +0300 |
---|---|---|
committer | Zhenyu Wang <zhenyuw@linux.intel.com> | 2019-04-25 15:34:00 +0800 |
commit | d9420241d09bac6ba930d95963bd237ec9629db6 (patch) | |
tree | eab456a2cfa63c597b35f855f875603a8b1cee80 /drivers/lightnvm | |
parent | 0cf8f58d0a340a2ac744f6e0e3402a89780ecf8b (diff) | |
download | linux-stable-d9420241d09bac6ba930d95963bd237ec9629db6.tar.gz linux-stable-d9420241d09bac6ba930d95963bd237ec9629db6.tar.bz2 linux-stable-d9420241d09bac6ba930d95963bd237ec9629db6.zip |
drm/i915/gvt: Do not copy the uninitialized pointer from fb_info
In the code the memcpy() function copied uninitialized pointer in fb_info
to dmabuf_obj->info. Later the pointer in dmabuf_obj->info will be
initialized. To make the code aligned with requirements of the klocwork
static code analyzer, the uninitialized pointer should be initialized
before memcpy().
v2:
- Initialize fb_info.obj in vgpu_get_plane_info(). (Colin Xu)
This patch fixed the critical issue #632 reported by klockwork.
Signed-off-by: Aleksei Gimbitskii <aleksei.gimbitskii@intel.com>
Cc: Zhenyu Wang <zhenyuw@linux.intel.com>
Cc: Zhi Wang <zhi.a.wang@intel.com>
Cc: Colin Xu <colin.xu@intel.com>
Reviewed-by: Colin Xu <colin.xu@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Diffstat (limited to 'drivers/lightnvm')
0 files changed, 0 insertions, 0 deletions