[PATCH] drm/i915/gvt: Make function dpy_reg_mmio_readx safe
Zhenyu Wang
zhenyuw at linux.intel.com
Thu Jun 15 09:13:06 UTC 2017
On 2017.06.13 10:15:26 +0800, changbin.du at intel.com wrote:
> From: Changbin Du <changbin.du at intel.com>
>
> The dpy_reg_mmio_read_x functions directly copy 4 bytes data to the
> target address with considering the length. If may cause the target
> memory corrupted if the requested length less than 4 bytes. Fix it
> for safety even we already have some checking to avoid this happen.
> And for convince, the 3 functions are merged.
>
applied, thanks!
--
Open Source Technology Center, Intel ltd.
$gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gvt-dev/attachments/20170615/a607d5b0/attachment.sig>
More information about the intel-gvt-dev
mailing list