linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Bryan Wu <bryan.wu@analog.com>
Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org,
	Michael Hennerich <michael.hennerich@analog.com>
Subject: Re: [PATCH 1/1] Input/Touchscreen Driver: add support AD7877 touchscreen driver
Date: Mon, 7 Apr 2008 16:16:05 -0400	[thread overview]
Message-ID: <20080407161007.ZZRA012@mailhub.coreip.homeip.net> (raw)
In-Reply-To: <1202980649-13309-1-git-send-email-bryan.wu@analog.com>

Hi Bryan, Michael,

On Thu, Feb 14, 2008 at 05:17:28PM +0800, Bryan Wu wrote:
> From: Michael Hennerich <michael.hennerich@analog.com>
> 
> [try #3] Changlog (Add feedback from Dmitry Torokhov):
>  - Change handling of spi_sync / spi_async return value handling
>  - Remove depreciated dev->power.power_state
>  - Fix error return path in ad7877_probe
>  - delete pending kernel timer
>  - Some minor cleanup (indention, use dev_err etc.)

Sorry for the long silence... I have a couple of comments at the moment
but I am sure i will have more ;)

> +
> +	status = spi_sync(spi, &req->msg);
> +
> +	if (status == 0)
> +		status = req->msg.status;
> +
> +	kfree(req);
> +	return status ? status : req->sample;

Use after free here.

> +
> +	ts->irq_disabled = 1;
> +	disable_irq(spi->irq);

I am a bit uneasy here... do we need to wait for an async spi completion
here before proceeding? Overall I have some concerns about the
irq/spi/removal/sysfs iteractions, I will need some more time to look
through the driver.

> +	status = spi_sync(spi, &req->msg);
> +	ts->irq_disabled = 0;
> +	enable_irq(spi->irq);
> +

-- 
Dmitry

  reply	other threads:[~2008-04-07 20:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-14  9:17 [PATCH 1/1] Input/Touchscreen Driver: add support AD7877 touchscreen driver Bryan Wu
2008-04-07 20:16 ` Dmitry Torokhov [this message]
2008-04-08 17:13   ` [PATCH 1/1] Input/Touchscreen Driver: add support AD7877touchscreen driver Hennerich, Michael
2008-05-12  6:33     ` Bryan Wu
2008-05-12 12:40       ` Dmitry Torokhov
  -- strict thread matches above, loose matches on Subject: below --
2008-01-30  9:52 [PATCH 1/1] Input/Touchscreen Driver: add support AD7877 touchscreen driver Bryan Wu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080407161007.ZZRA012@mailhub.coreip.homeip.net \
    --to=dmitry.torokhov@gmail.com \
    --cc=bryan.wu@analog.com \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=michael.hennerich@analog.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).