lkml.org 
[lkml]   [2007]   [Mar]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    SubjectRe: (usagi-core 32633) [PATCH 1/2] [USB] [PL2303]: fixed to skip NULL entry in pl2303_shutdown.
    From
    Sorry for resending.

    While booting, this entry is set to NULL in destroy_serial(),
    but serial->port is referred again in pl2303_shutdown() via
    serial->type->shutdown.

    Signed-off-by: Noriaki TAKAMIYA <takamiya@po.ntts.co.jp>

    ---
    drivers/usb/serial/pl2303.c | 2 ++
    1 files changed, 2 insertions(+), 0 deletions(-)

    diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c
    index 83dfae9..d631f8c 100644
    --- a/drivers/usb/serial/pl2303.c
    +++ b/drivers/usb/serial/pl2303.c
    @@ -905,6 +905,8 @@ static void pl2303_shutdown(struct usb_s
    dbg("%s", __FUNCTION__);

    for (i = 0; i < serial->num_ports; ++i) {
    + if (!serial->port[i])
    + continue;
    priv = usb_get_serial_port_data(serial->port[i]);
    if (priv) {
    pl2303_buf_free(priv->buf);
    --
    1.4.4
    --
    Noriaki TAKAMIYA


    -
    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/

    \
     
     \ /
      Last update: 2007-03-24 17:03    [W:2.734 / U:0.392 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site