public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Alexander Strakh <strakh@ispras.ru>
To: "Greg Kroah-Hartman" <greg@kroah.com>,
	"Greg Kroah-Hartman" <gregkh@suse.de>,
	linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: BUG null dereference in driver ./drivers/usb/serial/mos7840.c
Date: Mon, 21 Dec 2009 19:51:09 +0000	[thread overview]
Message-ID: <200912211951.09832.strakh@ispras.ru> (raw)

        KERNEL_VERSION: 2.6.32
        SUBJECT: null derefernce in function mos7840_bulk_in_callback
        SUBSCRIBE:
        In driver drivers/usb/serial/mos7840.c in function 
mos7840_bulk_in_callback:

1. If in line 697 mos7840_port = NULL then we goto line 699
2. In line 699 we have null dereference.

 696         mos7840_port = urb->context;
 697         if (!mos7840_port) {
 698                 dbg("%s", "NULL mos7840_port pointer");
 699                 mos7840_port->read_urb_busy = false;
 700                 return;
 701         }

Found by Linux Device Drivers Verification Project (Svace Detector)

             reply	other threads:[~2009-12-21 15:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-21 19:51 Alexander Strakh [this message]
2009-12-21 16:20 ` BUG null dereference in driver ./drivers/usb/serial/mos7840.c Greg KH

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=200912211951.09832.strakh@ispras.ru \
    --to=strakh@ispras.ru \
    --cc=greg@kroah.com \
    --cc=gregkh@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    /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