public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: BUG null dereference in driver ./drivers/usb/serial/mos7840.c
  2009-12-21 19:51 BUG null dereference in driver ./drivers/usb/serial/mos7840.c Alexander Strakh
@ 2009-12-21 16:20 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2009-12-21 16:20 UTC (permalink / raw)
  To: Alexander Strakh; +Cc: Greg Kroah-Hartman, linux-usb, linux-kernel

On Mon, Dec 21, 2009 at 07:51:09PM +0000, Alexander Strakh wrote:
>         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

How can that happen?

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

What is this?

Are you also going to send patches for stuff like this?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 2+ messages in thread

* BUG null dereference in driver ./drivers/usb/serial/mos7840.c
@ 2009-12-21 19:51 Alexander Strakh
  2009-12-21 16:20 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Strakh @ 2009-12-21 19:51 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Greg Kroah-Hartman, linux-usb, linux-kernel

        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)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-12-21 16:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-21 19:51 BUG null dereference in driver ./drivers/usb/serial/mos7840.c Alexander Strakh
2009-12-21 16:20 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox