[PATCH pciaccess resent 1/2] vgaarb: decode should send new information to the kernel

Henry Zhao henry.zhao at oracle.com
Mon Jun 21 18:44:46 PDT 2010


On 06/21/10 18:43, Henry Zhao wrote:
> This was introduced in e360c11c.
>
> Signed-off-by: Tiago Vignatti<tiago.vignatti at nokia.com 
> <http://lists.x.org/mailman/listinfo/xorg-devel>>
> ---

Reviewed-by:  Henry Zhao <henry.zhao at oracle.com>

>  src/common_vgaarb.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/src/common_vgaarb.c b/src/common_vgaarb.c
> index a96aedf..f09d513 100644
> --- a/src/common_vgaarb.c
> +++ b/src/common_vgaarb.c
> @@ -259,7 +259,7 @@ pci_device_vgaarb_decodes(int new_vgaarb_rsrc)
>      if (dev->vgaarb_rsrc == new_vgaarb_rsrc)
>          return 0;
>
> -    len = snprintf(buf, BUFSIZE, "decodes %s", 
> rsrc_to_str(dev->vgaarb_rsrc));
> +    len = snprintf(buf, BUFSIZE, "decodes %s", 
> rsrc_to_str(new_vgaarb_rsrc));
>      ret = vgaarb_write(pci_sys->vgaarb_fd, buf, len);
>      if (ret == 0)
>          dev->vgaarb_rsrc = new_vgaarb_rsrc;



More information about the xorg-devel mailing list