[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-id: <4B4D4689.4060005@sun.com>
Date: Tue, 12 Jan 2010 20:05:29 -0800
From: Henry Zhao <Henry.Zhao@....COM>
To: Tiago Vignatti <tiago.vignatti@...ia.com>
Cc: Dave Airlie <airlied@...hat.com>,
Jesse Barnes <jbarnes@...tuousgeek.org>,
Benjamin Herrenschmidt <benh@...nel.crashing.org>,
"Paulo R. Zanoni" <przanoni@...il.com>,
Andy Getzendanner <james.getzendanner@...dents.olin.edu>,
Brad Spengler <spender@...ecurity.net>,
"dri-devel@...ts.sf.net" <dri-devel@...ts.sf.net>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] vgaarb: fix trylock behaviour accordingly vga_tryget
return value
Signed-off-by: Henry Zhao <Henry.Zhao@....COM>
Tiago Vignatti wrote:
> From: Henry Zhao <Henry.Zhao@....COM>
>
> Signed-off-by: Tiago Vignatti <tiago.vignatti@...ia.com>
> ---
> Henry, can you Signed-off-by there?
>
> drivers/gpu/vga/vgaarb.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/gpu/vga/vgaarb.c b/drivers/gpu/vga/vgaarb.c
> index 2f6cf69..0f5f64d 100644
> --- a/drivers/gpu/vga/vgaarb.c
> +++ b/drivers/gpu/vga/vgaarb.c
> @@ -935,7 +935,7 @@ static ssize_t vga_arb_write(struct file *file, const char __user * buf,
> goto done;
> }
>
> - if (vga_tryget(pdev, io_state)) {
> + if (!vga_tryget(pdev, io_state)) {
> /* Update the client's locks lists... */
> for (i = 0; i < MAX_USER_CARDS; i++) {
> if (priv->cards[i].pdev == pdev) {
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists