login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
April
»
8
RE: [PATCH 1/1] Input/Touchscreen Driver: add support AD7877touchscreen driver
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Hennerich, Michael <Michael.Hennerich@...>
To: Dmitry Torokhov <dmitry.torokhov@...>, Bryan Wu <bryan.wu@...>
Cc: <linux-input@...>, <linux-kernel@...>, Michael Hennerich <michael.hennerich@...>
Subject:
RE: [PATCH 1/1] Input/Touchscreen Driver: add support AD7877touchscreen driver
Date: Tuesday, April 8, 2008 - 1:13 pm
>-----Original Message-----
quoted text
>From: Dmitry Torokhov [mailto:dmitry.torokhov@gmail.com] >Sent: Montag, 7. April 2008 22:16 >To: Bryan Wu >Cc: linux-input@vger.kernel.org; linux-kernel@vger.kernel.org; Michael >Hennerich >Subject: Re: [PATCH 1/1] Input/Touchscreen Driver: add support >AD7877touchscreen driver > >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.
Yeah this is definitely broken.
quoted text
> >> + >> + ts->irq_disabled = 1; >> + disable_irq(spi->irq); > >I am a bit uneasy here... do we need to wait for an async spi
completion
quoted text
>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.
I think you are right - let me come up with a patch. Thanks and best regards, Michael
quoted text
> >> + status = spi_sync(spi, &req->msg); >> + ts->irq_disabled = 0; >> + enable_irq(spi->irq); >> + > >-- >Dmitry
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 1/1] Input/Touchscreen Driver: add support AD7877 tou...
, Bryan Wu
, (Thu Feb 14, 5:17 am)
Re: [PATCH 1/1] Input/Touchscreen Driver: add support AD7877...
, Dmitry Torokhov
, (Mon Apr 7, 4:16 pm)
RE: [PATCH 1/1] Input/Touchscreen Driver: add support AD7877...
, Hennerich, Michael
, (Tue Apr 8, 1:13 pm)
Re: [PATCH 1/1] Input/Touchscreen Driver: add support AD7877...
, Bryan Wu
, (Mon May 12, 2:33 am)
Re: [PATCH 1/1] Input/Touchscreen Driver: add support AD7877...
, Dmitry Torokhov
, (Mon May 12, 8:40 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Hiten Pandya
Re: up? (emacs docbook xml ide)
Greg Kroah-Hartman
[PATCH 004/196] Chinese: add translation of SubmittingPatches
debian developer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Jan Engelhardt
intel iommu (Re: -mm merge plans for 2.6.23)
git
:
linux-netdev
:
Gerrit Renker
[PATCH 03/37] dccp: List management for new feature negotiation
Ingo Molnar
iwlwifi: fix build bug in "iwlwifi: fix LED stall"
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
1 user
and
648 guests
online.
Online users
chatty2man
Syndicate