All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Javier Martinez Canillas <martinez.javier@gmail.com>
Cc: Henrik Rydberg <rydberg@euromail.se>,
	Mohan Pallaka <mpallaka@codeaurora.org>,
	Kevin McNeely <kev@cypress.com>,
	Shubhrajyoti Datta <omaplinuxkernel@gmail.com>,
	linux-input@vger.kernel.org
Subject: Re: [PATCH v7 0/3] Input: Cypress TTSP device driver
Date: Tue, 8 Nov 2011 00:17:01 -0800	[thread overview]
Message-ID: <20111108081701.GC1837@core.coreip.homeip.net> (raw)
In-Reply-To: <CAAwP0s0H5-cpGGn-x9+5praGs2+7kTyG==k36Y7zB_-d8SHO7Q@mail.gmail.com>

Hi Javier,

On Mon, Nov 07, 2011 at 09:17:57AM +0100, Javier Martinez Canillas wrote:
 
> Hello Dmitry,
> 
> Do you have any comments on this issue?
> 

Sorry for the delay and I promise your driver is next on my list.

The driver seems in much better shape than it was last time I looked at
it. Below are 2 tiny patches I still have from last time I tried
going over the code.

Thanks.

-- 
Dmitry


Input: cyttsp - fix use-after-free in syttsp_release

From: Dmitry Torokhov <dmitry.torokhov@gmail.com>

Once input_unregister_device() is called we may not assume that
ts->input contains valid pointer. Besides, input core takes care of
freeing MT slot memory.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
---

 drivers/input/touchscreen/cyttsp/cyttsp_core.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)


diff --git a/drivers/input/touchscreen/cyttsp/cyttsp_core.c b/drivers/input/touchscreen/cyttsp/cyttsp_core.c
index 103ac39..240998d 100644
--- a/drivers/input/touchscreen/cyttsp/cyttsp_core.c
+++ b/drivers/input/touchscreen/cyttsp/cyttsp_core.c
@@ -660,7 +660,6 @@ void cyttsp_core_release(void *handle)
 		input_unregister_device(ts->input);
 		if (ts->platform_data->exit)
 			ts->platform_data->exit();
-		input_mt_destroy_slots(ts->input);
 		kfree(ts);
 	}
 }



Input: cyttsp - remove ext() method from bus ops

From: Dmitry Torokhov <dmitry.torokhov@gmail.com>

It is not used anywhere and so is not needed

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
---

 drivers/input/touchscreen/cyttsp/cyttsp_core.h |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)


diff --git a/drivers/input/touchscreen/cyttsp/cyttsp_core.h b/drivers/input/touchscreen/cyttsp/cyttsp_core.h
index efefdb9..c4c7d9e 100644
--- a/drivers/input/touchscreen/cyttsp/cyttsp_core.h
+++ b/drivers/input/touchscreen/cyttsp/cyttsp_core.h
@@ -44,7 +44,6 @@
 struct cyttsp_bus_ops {
 	s32 (*write)(void *handle, u8 addr, u8 length, const void *values);
 	s32 (*read)(void *handle, u8 addr, u8 length, void *values);
-	s32 (*ext)(void *handle, void *values);
 	struct device *dev;
 };
 

  reply	other threads:[~2011-11-08  8:17 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-23 18:53 [PATCH v7 0/3] Input: Cypress TTSP device driver Javier Martinez Canillas
2011-10-23 18:53 ` [PATCH v7 1/3] Input: cyttsp - Cypress TTSP capacitive multi-touch screen support Javier Martinez Canillas
2011-10-23 18:53 ` [PATCH v7 2/3] Input: cyttsp - add support for Cypress TTSP touchscreen I2C bus interface Javier Martinez Canillas
2011-10-23 18:53 ` [PATCH v7 3/3] Input: cyttsp - add support for Cypress TTSP touchscreen SPI " Javier Martinez Canillas
2011-10-27 16:03 ` [PATCH v7 0/3] Input: Cypress TTSP device driver Javier Martinez Canillas
2011-10-27 16:03   ` Javier Martinez Canillas
2011-11-01  2:04 ` Javier Martinez Canillas
2011-11-01 15:20   ` Henrik Rydberg
2011-11-01 18:51     ` Javier Martinez Canillas
2011-11-07  8:17       ` Javier Martinez Canillas
2011-11-08  8:17         ` Dmitry Torokhov [this message]
2011-11-08  8:38           ` Javier Martinez Canillas

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=20111108081701.GC1837@core.coreip.homeip.net \
    --to=dmitry.torokhov@gmail.com \
    --cc=kev@cypress.com \
    --cc=linux-input@vger.kernel.org \
    --cc=martinez.javier@gmail.com \
    --cc=mpallaka@codeaurora.org \
    --cc=omaplinuxkernel@gmail.com \
    --cc=rydberg@euromail.se \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.