Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1208655 > unrolled thread
| Started by | Philipp Hachtmann <hachti@hachti.de> |
|---|---|
| First post | 2015-08-17 17:50 +0200 |
| Last post | 2015-08-17 20:10 +0200 |
| Articles | 3 — 3 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 1/2] USB: symbolserial: Use usb_get_serial_port_data Philipp Hachtmann <hachti@hachti.de> - 2015-08-17 17:50 +0200
Re: [PATCH 1/2] USB: symbolserial: Use usb_get_serial_port_data Greg KH <gregkh@linuxfoundation.org> - 2015-08-17 18:10 +0200
Re: [PATCH 1/2] USB: symbolserial: Use usb_get_serial_port_data Johan Hovold <johan@kernel.org> - 2015-08-17 20:10 +0200
| From | Philipp Hachtmann <hachti@hachti.de> |
|---|---|
| Date | 2015-08-17 17:50 +0200 |
| Subject | [PATCH 1/2] USB: symbolserial: Use usb_get_serial_port_data |
| Message-ID | <pYuPD-3cv-1@gated-at.bofh.it> |
The driver used usb_get_serial_data(port->serial) which compiled but resulted
in a NULL pointer being returned (and subsequently used). I did not go deeper
into this but I guess this is a regression.
Signed-off-by: Philipp Hachtmann <hachti@hachti.de>
---
drivers/usb/serial/symbolserial.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/usb/serial/symbolserial.c b/drivers/usb/serial/symbolserial.c
index 8fceec7..6ed8044 100644
--- a/drivers/usb/serial/symbolserial.c
+++ b/drivers/usb/serial/symbolserial.c
@@ -94,7 +94,7 @@ exit:
static int symbol_open(struct tty_struct *tty, struct usb_serial_port *port)
{
- struct symbol_private *priv = usb_get_serial_data(port->serial);
+ struct symbol_private *priv = usb_get_serial_port_data(port);
unsigned long flags;
int result = 0;
@@ -120,7 +120,7 @@ static void symbol_close(struct usb_serial_port *port)
static void symbol_throttle(struct tty_struct *tty)
{
struct usb_serial_port *port = tty->driver_data;
- struct symbol_private *priv = usb_get_serial_data(port->serial);
+ struct symbol_private *priv = usb_get_serial_port_data(port);
spin_lock_irq(&priv->lock);
priv->throttled = true;
@@ -130,7 +130,7 @@ static void symbol_throttle(struct tty_struct *tty)
static void symbol_unthrottle(struct tty_struct *tty)
{
struct usb_serial_port *port = tty->driver_data;
- struct symbol_private *priv = usb_get_serial_data(port->serial);
+ struct symbol_private *priv = usb_get_serial_port_data(port);
int result;
bool was_throttled;
--
2.1.4
--
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/
[toc] | [next] | [standalone]
| From | Greg KH <gregkh@linuxfoundation.org> |
|---|---|
| Date | 2015-08-17 18:10 +0200 |
| Message-ID | <pYv8Z-3OC-3@gated-at.bofh.it> |
| In reply to | #1208655 |
On Mon, Aug 17, 2015 at 05:31:46PM +0200, Philipp Hachtmann wrote: > The driver used usb_get_serial_data(port->serial) which compiled but resulted > in a NULL pointer being returned (and subsequently used). I did not go deeper > into this but I guess this is a regression. > > Signed-off-by: Philipp Hachtmann <hachti@hachti.de> > --- > drivers/usb/serial/symbolserial.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) Doh, obviously no one has used this driver in a long time, thanks for these patches... Johan, mind if I take these directly? thanks, greg k-h -- 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/
[toc] | [prev] | [next] | [standalone]
| From | Johan Hovold <johan@kernel.org> |
|---|---|
| Date | 2015-08-17 20:10 +0200 |
| Message-ID | <pYx18-6vH-17@gated-at.bofh.it> |
| In reply to | #1208681 |
On Mon, Aug 17, 2015 at 09:06:15AM -0700, Greg Kroah-Hartman wrote:
> On Mon, Aug 17, 2015 at 05:31:46PM +0200, Philipp Hachtmann wrote:
> > The driver used usb_get_serial_data(port->serial) which compiled but resulted
> > in a NULL pointer being returned (and subsequently used). I did not go deeper
> > into this but I guess this is a regression.
> >
> > Signed-off-by: Philipp Hachtmann <hachti@hachti.de>
> > ---
> > drivers/usb/serial/symbolserial.c | 6 +++---
> > 1 file changed, 3 insertions(+), 3 deletions(-)
>
> Doh, obviously no one has used this driver in a long time, thanks for
> these patches...
Wow...
> Johan, mind if I take these directly?
Please do.
This one should be tagged:
Fixes: a85796ee5149 ("USB: symbolserial: move private-data allocation to
port_probe")
Cc: stable <stable@vger.kernel.org> # v3.10
And for both patches:
Acked-by: Johan Hovold <johan@kernel.org>
Thanks,
Johan
--
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/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web