Re: [PATCH v1 1/1] drivers/usb/storage: NULL pointer dereference [null-pointer-deref] (CWE 476) problem

2018-02-27 Thread Joe Moriarty
On 2/27/2018 2:05 PM, Greg KH wrote: On Tue, Feb 27, 2018 at 01:22:24PM -0500, Joe Moriarty wrote: On 2/27/2018 1:14 PM, Greg KH wrote: On Tue, Feb 27, 2018 at 09:59:40AM -0500, Joe Moriarty wrote: On 2/26/2018 2:35 PM, Greg KH wrote: On Mon, Feb 26, 2018 at 02:08:08PM -0500, Joe Moriarty

Re: [PATCH v1 1/1] drivers/usb/storage: NULL pointer dereference [null-pointer-deref] (CWE 476) problem

2018-02-27 Thread Greg KH
On Tue, Feb 27, 2018 at 01:22:24PM -0500, Joe Moriarty wrote: > On 2/27/2018 1:14 PM, Greg KH wrote: > > On Tue, Feb 27, 2018 at 09:59:40AM -0500, Joe Moriarty wrote: > > > On 2/26/2018 2:35 PM, Greg KH wrote: > > > > On Mon, Feb 26, 2018 at 02:08:08PM -0500, Joe Moriarty wrote: > > > > > On

Re: [PATCH v1 1/1] drivers/usb/storage: NULL pointer dereference [null-pointer-deref] (CWE 476) problem

2018-02-27 Thread Joe Moriarty
On 2/27/2018 1:14 PM, Greg KH wrote: On Tue, Feb 27, 2018 at 09:59:40AM -0500, Joe Moriarty wrote: On 2/26/2018 2:35 PM, Greg KH wrote: On Mon, Feb 26, 2018 at 02:08:08PM -0500, Joe Moriarty wrote: On 2/26/2018 1:12 PM, Greg KH wrote: On Mon, Feb 26, 2018 at 12:10:02PM -0500, Joe Moriarty

Re: [PATCH v1 1/1] drivers/usb/storage: NULL pointer dereference [null-pointer-deref] (CWE 476) problem

2018-02-27 Thread Greg KH
On Tue, Feb 27, 2018 at 09:59:40AM -0500, Joe Moriarty wrote: > On 2/26/2018 2:35 PM, Greg KH wrote: > > On Mon, Feb 26, 2018 at 02:08:08PM -0500, Joe Moriarty wrote: > > > On 2/26/2018 1:12 PM, Greg KH wrote: > > > > On Mon, Feb 26, 2018 at 12:10:02PM -0500, Joe Moriarty wrote: > > > > > The

Re: [PATCH v1 1/1] drivers/usb/storage: NULL pointer dereference [null-pointer-deref] (CWE 476) problem

2018-02-27 Thread Joe Moriarty
On 2/27/2018 9:59 AM, Joe Moriarty wrote: On 2/26/2018 2:35 PM, Greg KH wrote: On Mon, Feb 26, 2018 at 02:08:08PM -0500, Joe Moriarty wrote: On 2/26/2018 1:12 PM, Greg KH wrote: On Mon, Feb 26, 2018 at 12:10:02PM -0500, Joe Moriarty wrote: The Parfait (version 2.1.0) static code analysis

Re: [PATCH v1 1/1] drivers/usb/storage: NULL pointer dereference [null-pointer-deref] (CWE 476) problem

2018-02-27 Thread Joe Moriarty
On 2/26/2018 2:35 PM, Greg KH wrote: On Mon, Feb 26, 2018 at 02:08:08PM -0500, Joe Moriarty wrote: On 2/26/2018 1:12 PM, Greg KH wrote: On Mon, Feb 26, 2018 at 12:10:02PM -0500, Joe Moriarty wrote: The Parfait (version 2.1.0) static code analysis tool found the following NULL pointer

Re: [PATCH v1 1/1] drivers/usb/storage: NULL pointer dereference [null-pointer-deref] (CWE 476) problem

2018-02-26 Thread Greg KH
On Mon, Feb 26, 2018 at 02:08:08PM -0500, Joe Moriarty wrote: > On 2/26/2018 1:12 PM, Greg KH wrote: > > On Mon, Feb 26, 2018 at 12:10:02PM -0500, Joe Moriarty wrote: > > > The Parfait (version 2.1.0) static code analysis tool found the > > > following NULL pointer dereference problem. > > > >

Re: [PATCH v1 1/1] drivers/usb/storage: NULL pointer dereference [null-pointer-deref] (CWE 476) problem

2018-02-26 Thread Joe Moriarty
On 2/26/2018 1:12 PM, Greg KH wrote: On Mon, Feb 26, 2018 at 12:10:02PM -0500, Joe Moriarty wrote: The Parfait (version 2.1.0) static code analysis tool found the following NULL pointer dereference problem. What is the "CWE 476" thing in the subject line for? [JDM] (CWE 476) stands for

Re: [PATCH v1 1/1] drivers/usb/storage: NULL pointer dereference [null-pointer-deref] (CWE 476) problem

2018-02-26 Thread Greg KH
On Mon, Feb 26, 2018 at 12:10:02PM -0500, Joe Moriarty wrote: > The Parfait (version 2.1.0) static code analysis tool found the > following NULL pointer dereference problem. What is the "CWE 476" thing in the subject line for? > > dev_to_shost() in include/scsi/scsi_host.h has the ability to

[PATCH v1 1/1] drivers/usb/storage: NULL pointer dereference [null-pointer-deref] (CWE 476) problem

2018-02-26 Thread Joe Moriarty
The Parfait (version 2.1.0) static code analysis tool found the following NULL pointer dereference problem. dev_to_shost() in include/scsi/scsi_host.h has the ability to return NULL if the scsi host device does not have the Scsi_host->parent field set. With the possibilty of a NULL pointer being